mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 09:11:11 +08:00
http: fix race introduced in 7982aaf151
This commit is contained in:
parent
3b68340eac
commit
1a16849df0
|
@ -456,7 +456,7 @@ func (f *Fs) List(ctx context.Context, dir string) (entries fs.DirEntries, err e
|
|||
fs: f,
|
||||
remote: remote,
|
||||
}
|
||||
switch err = file.stat(ctx); err {
|
||||
switch err := file.stat(ctx); err {
|
||||
case nil:
|
||||
add(file)
|
||||
case fs.ErrorNotAFile:
|
||||
|
|
Loading…
Reference in New Issue
Block a user