# HG changeset patch # User Sascha L. Teichmann # Date 1553697456 -3600 # Node ID b5555005f51e92920d0c5c93173f0c41120c101d # Parent 3430369d2310018b8ca9f675ec7ef8dc38a95a30 cosmetics: removed superfluous casts. diff -r 3430369d2310 -r b5555005f51e pkg/controllers/gauges.go --- a/pkg/controllers/gauges.go Wed Mar 27 15:28:36 2019 +0100 +++ b/pkg/controllers/gauges.go Wed Mar 27 15:37:36 2019 +0100 @@ -341,7 +341,7 @@ log.Printf("info: days found: %d\n", len(results)) sort.Slice(results, func(i, j int) bool { - if d := int(results[i].month) - int(results[j].month); d != 0 { + if d := results[i].month - results[j].month; d != 0 { return d < 0 } return results[i].day < results[j].day