diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-08-28 10:52:03 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-08-28 10:52:03 +0200 |
| commit | ff57ebcbe4949b7b53e7c42ecc7916b601a67213 (patch) | |
| tree | 84ee393c143514a5be849641a61add1930919dcc /strava | |
| parent | 10806900a46b4eba197af9fc768928c57bd33982 (diff) | |
modernize
Diffstat (limited to 'strava')
| -rw-r--r-- | strava/sync.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/strava/sync.go b/strava/sync.go index 4630a1d..34559de 100644 --- a/strava/sync.go +++ b/strava/sync.go @@ -164,7 +164,7 @@ func activityFIT(activity Activity, streams activityStreams) ([]byte, error) { distance := 0.0 var previous *geodist.Coord - for i := 0; i < n; i++ { + for i := range n { coord := geodist.Coord{Lat: streams.LatLng[i][0], Lon: streams.LatLng[i][1]} if previous != nil { _, km := geodist.HaversineDistance(*previous, coord) |
