From d7cd35e2ca8888439b940d3f3664acfb5750dc07 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Thu, 21 Jan 2021 17:18:46 +0000 Subject: [PATCH] qingstor: fix error propagation in CleanUp Before this change errors cleaning multiple buckets were passing silently --- backend/qingstor/qingstor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/qingstor/qingstor.go b/backend/qingstor/qingstor.go index 14384eab5..524caba55 100644 --- a/backend/qingstor/qingstor.go +++ b/backend/qingstor/qingstor.go @@ -927,7 +927,7 @@ func (f *Fs) CleanUp(ctx context.Context) (err error) { } for _, entry := range entries { cleanErr := f.cleanUpBucket(ctx, f.opt.Enc.FromStandardName(entry.Remote())) - if err != nil { + if cleanErr != nil { fs.Errorf(f, "Failed to cleanup bucket: %q", cleanErr) err = cleanErr }