Fix up gocritic issues

This commit is contained in:
Marc Di Luzio 2020-06-10 12:32:15 +01:00
parent 2ee68e74ac
commit 14c4e61660
9 changed files with 72 additions and 56 deletions

View file

@ -25,7 +25,7 @@ func Pmod(x, d int) int {
}
// Max returns the highest int
func Max(x int, y int) int {
func Max(x, y int) int {
if x < y {
return y
}
@ -33,7 +33,7 @@ func Max(x int, y int) int {
}
// Min returns the lowest int
func Min(x int, y int) int {
func Min(x, y int) int {
if x > y {
return y
}