mirror of
https://github.com/rclone/rclone.git
synced 2025-07-01 04:50:12 +02:00
build: fix gocritic lint issue elseif
This commit is contained in:
committed by
Nick Craig-Wood
parent
4454ed9d3b
commit
e82b5b11af
@ -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):]
|
||||
|
Reference in New Issue
Block a user