Mercurial > gemma
changeset 2832:b5555005f51e
cosmetics: removed superfluous casts.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 27 Mar 2019 15:37:36 +0100 |
parents | 3430369d2310 |
children | 1b6840093eac |
files | pkg/controllers/gauges.go |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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