diff --git a/main.go b/main.go index ba69126..0b6b41a 100644 --- a/main.go +++ b/main.go @@ -281,7 +281,7 @@ func main() { platform = &query["platform"][0] } - c := efaClients[(efaClient.Add(1) - 1) % uint64(len(efaClients))] + c := efaClients[(efaClient.Add(1)-1)%uint64(len(efaClients))] ds, err := FetchDepartures(c, stopId) if err != nil { http.Error(w, err.Error(), http.StatusInternalServerError)