Skip to content

Commit 88d852a

Browse files
authored
Merge pull request #1998 from CortexFoundation/dev
build: fix string compare for SortFunc
2 parents 5114a2b + b6b524b commit 88d852a

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)