Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit e334eee

Browse files
committed
TestMoveToSubdir: use sort.Strings() (gosimple)
``` 13:06:14 pkg/directory/directory_test.go:182:2: S1032: should use sort.Strings(...) instead of sort.Sort(sort.StringSlice(...)) (gosimple) 13:06:14 sort.Sort(sort.StringSlice(results)) ``` Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent ab599b5 commit e334eee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/directory/directory_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ func TestMoveToSubdir(t *testing.T) {
179179
for _, info := range infos {
180180
results = append(results, info.Name())
181181
}
182-
sort.Sort(sort.StringSlice(results))
182+
sort.Strings(results)
183183
if !reflect.DeepEqual(filesList, results) {
184184
t.Fatalf("Results after migration do not equal list of files: expected: %v, got: %v", filesList, results)
185185
}

0 commit comments

Comments
 (0)