mirror of
https://github.com/zrepl/zrepl.git
synced 2025-08-18 10:49:40 +02:00
fix incorrect use of sort.StringSlice
A newer version of staticheck found these: > SA4029: sort.StringSlice is a type, not a function, and > sort.StringSlice(variants) doesn't sort your values; consider using > sort.Strings instead (staticcheck)
This commit is contained in:
@@ -168,7 +168,7 @@ func (s AbstractionTypeSet) String() string {
|
||||
for i := range s {
|
||||
sts = append(sts, string(i))
|
||||
}
|
||||
sts = sort.StringSlice(sts)
|
||||
sort.Strings(sts)
|
||||
return strings.Join(sts, ",")
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user