From 1a16849df0eb699f62b9c5b56fcae32b8ffb043b Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Sat, 14 Sep 2019 08:48:13 +0100 Subject: [PATCH] http: fix race introduced in 7982aaf1516f --- backend/http/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: