Skip to content

Commit

Permalink
chore: make lint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed Oct 12, 2024
1 parent c41869f commit 5d23e7c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions matcher_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package zero

import (
"cmp"
"strconv"
"testing"
)
Expand Down Expand Up @@ -53,9 +52,9 @@ func reverse[S ~[]E, E any](s S) {
}

// isSorted reports whether x is sorted in ascending order.
func isSorted[S ~[]E, E cmp.Ordered](x S) bool {
func isSorted(x []int) bool {
for i := len(x) - 1; i > 0; i-- {
if cmp.Less(x[i], x[i-1]) {
if x[i] < x[i-1] {
return false
}
}
Expand Down

0 comments on commit 5d23e7c

Please sign in to comment.