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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user