diff --git a/backend/http/http.go b/backend/http/http.go index 9c838e2da..ba90b4bf0 100644 --- a/backend/http/http.go +++ b/backend/http/http.go @@ -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: