mirror of
https://github.com/restic/restic.git
synced 2026-10-13 13:37:12 +00:00
simplified string sorting by using a more suitable function
This commit is contained in:
1 parent
3ca424050f
commit
16eeed2ad5
4 files changed
+10
-10
No files matched your search
@@ -72,8 +72,8 @@ func verifyDirectoryContents(t testing.TB, fs FS, dir string, want []string) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
sort.Sort(sort.StringSlice(want))
|
||||
sort.Sort(sort.StringSlice(entries))
|
||||
sort.Strings(want)
|
||||
sort.Strings(entries)
|
||||
|
||||
if !cmp.Equal(want, entries) {
|
||||
t.Error(cmp.Diff(want, entries))
|
||||
|
||||
Reference in new issue
Block a user