1
0
mirror of https://github.com/rclone/rclone.git synced 2026-01-04 01:23:24 +00:00

build: run gofmt -s to simplify the code: suggested by Go Report Card

This commit is contained in:
Nick Craig-Wood
2020-06-18 18:45:39 +01:00
parent df9c930581
commit d8eea0e397
4 changed files with 48 additions and 48 deletions

View File

@@ -229,7 +229,7 @@ func makeListingFromObjects(objs []fs.Object) string {
// filterEmptyDirs removes any empty (or containing only directories)
// directories from expectedDirs
func filterEmptyDirs(t *testing.T, items []Item, expectedDirs []string) (newExpectedDirs []string) {
dirs := map[string]struct{}{"": struct{}{}}
dirs := map[string]struct{}{"": {}}
for _, item := range items {
base := item.Path
for {