diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-09-25 08:57:10 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-09-25 08:57:10 +0200 |
| commit | 0eadc1fde03153ff4b60655f15ed86367dc6a3d3 (patch) | |
| tree | 00e8f42b983b665992a514bc715d92a96b4331c7 /ride/elevation_outlier.go | |
| parent | 077aa1700fbcaf3f499c2178e0e58e89ae9dcaf8 (diff) | |
Apply go fix modernizations
Embedded composite literals and min/max clamp idioms, as rewritten by the go fix step of mise check.
Diffstat (limited to 'ride/elevation_outlier.go')
| -rw-r--r-- | ride/elevation_outlier.go | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/ride/elevation_outlier.go b/ride/elevation_outlier.go index aa4c7ab..76896cd 100644 --- a/ride/elevation_outlier.go +++ b/ride/elevation_outlier.go @@ -231,11 +231,9 @@ func EncodeGPX(r Ride, w io.Writer) error { } for i := 0; i < r.Len(); i++ { segment.Points[i] = gpx.GPXPoint{ - Point: gpx.Point{ - Latitude: r.Coords[i].Lat, - Longitude: r.Coords[i].Lon, - Elevation: *gpx.NewNullableFloat64(r.Elevations[i]), - }, + Latitude: r.Coords[i].Lat, + Longitude: r.Coords[i].Lon, + Elevation: *gpx.NewNullableFloat64(r.Elevations[i]), Timestamp: r.timestamps[i], } } |
