Skip to content

Commit 9442a41

Browse files
committed
Use sort.SliceStable instead of sort.Slice
1 parent 0108387 commit 9442a41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/golinters/nestif.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func NewNestif() *goanalysis.Linter {
4040
return nil, nil
4141
}
4242

43-
sort.Slice(issues, func(i, j int) bool {
43+
sort.SliceStable(issues, func(i, j int) bool {
4444
return issues[i].Complexity > issues[j].Complexity
4545
})
4646

0 commit comments

Comments
 (0)