Skip to content

Commit

Permalink
Fix lint: redefines-builtin-id for max (#117)
Browse files Browse the repository at this point in the history
Go 1.21 added built-ins for `min` and `max`.
  • Loading branch information
prashantv authored Nov 10, 2024
1 parent e12a8ed commit e6a3e4c
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions internal/diff/diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,3 @@ func Diff[T comparable](want, got []T) string {

return buf.String()
}

func max(a, b int) int {
if a > b {
return a
}
return b
}

0 comments on commit e6a3e4c

Please sign in to comment.