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 }