Skip to content

Commit

Permalink
Fix lint: redefines-builtin-id for max
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 committed Nov 10, 2024
1 parent e12a8ed commit 5bcb369
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions internal/diff/diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,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 5bcb369

Please sign in to comment.