Skip to content

Commit 2f56030

Browse files
committed
review: 1ns optimization
1 parent 9c270ed commit 2f56030

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/golinters/revive/revive.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"go/token"
99
"os"
1010
"reflect"
11+
"slices"
1112
"sort"
1213
"strings"
1314
"sync"
@@ -481,7 +482,7 @@ func extractRulesName(rules []lint.Rule) []string {
481482
names = append(names, r.Name())
482483
}
483484

484-
sort.Strings(names)
485+
slices.Sort(names)
485486

486487
return names
487488
}

0 commit comments

Comments
 (0)