1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-06 00:03:32 +00:00

build: fix gocritic lint issue elseif

This commit is contained in:
albertony
2024-05-31 15:18:56 +02:00
committed by Nick Craig-Wood
parent 4454ed9d3b
commit e82b5b11af
13 changed files with 92 additions and 120 deletions

View File

@@ -4173,11 +4173,9 @@ func (f *Fs) list(ctx context.Context, opt listOpt, fn listFn) error {
if opt.noSkipMarkers {
// process directory markers as files
isDirectory = false
} else {
} else if remote == f.opt.Enc.ToStandardPath(opt.directory) {
// Don't insert the root directory
if remote == f.opt.Enc.ToStandardPath(opt.directory) {
continue
}
continue
}
}
remote = remote[len(opt.prefix):]