Fix up gocritic issues
This commit is contained in:
parent
2ee68e74ac
commit
14c4e61660
9 changed files with 72 additions and 56 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue