1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

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 <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2019-08-05 15:43:54 +02:00
parent ab599b5cdc
commit e334eeeed8
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -179,7 +179,7 @@ func TestMoveToSubdir(t *testing.T) {
for _, info := range infos {
results = append(results, info.Name())
}
sort.Sort(sort.StringSlice(results))
sort.Strings(results)
if !reflect.DeepEqual(filesList, results) {
t.Fatalf("Results after migration do not equal list of files: expected: %v, got: %v", filesList, results)
}