From e334eeeed89983e0c734843cf8e52f63674df08e Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 5 Aug 2019 15:43:54 +0200 Subject: [PATCH] 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 --- pkg/directory/directory_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/directory/directory_test.go b/pkg/directory/directory_test.go index ea62bdf236..04bb5d8d02 100644 --- a/pkg/directory/directory_test.go +++ b/pkg/directory/directory_test.go @@ -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) }