Skip to content

Commit ba0469f

Browse files
AaronChen0jorgemmsilva
authored andcommitted
build: fix string compare for SortFunc (ethereum#29595)
1 parent fb3250f commit ba0469f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/update-license.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,8 @@ func writeAuthors(files []string) {
291291
}
292292
}
293293
// Write sorted list of authors back to the file.
294-
slices.SortFunc(list, func(a, b string) bool {
295-
return strings.ToLower(a) < strings.ToLower(b)
294+
slices.SortFunc(list, func(a, b string) int {
295+
return strings.Compare(strings.ToLower(a), strings.ToLower(b))
296296
})
297297
content := new(bytes.Buffer)
298298
content.WriteString(authorsFileHeader)

0 commit comments

Comments
 (0)