From 930574c6e9da99a4aafbd3c9c88c53fd4f711144 Mon Sep 17 00:00:00 2001 From: albertony <12441419+albertony@users.noreply.github.com> Date: Sat, 25 Mar 2023 23:19:42 +0100 Subject: [PATCH] oracleobjectstorage: remove empty branch (fixes issue reported by the staticcheck linter) --- backend/oracleobjectstorage/oracleobjectstorage.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/backend/oracleobjectstorage/oracleobjectstorage.go b/backend/oracleobjectstorage/oracleobjectstorage.go index a0de006b8..e3ad782d4 100644 --- a/backend/oracleobjectstorage/oracleobjectstorage.go +++ b/backend/oracleobjectstorage/oracleobjectstorage.go @@ -589,12 +589,7 @@ func (f *Fs) cleanUpBucket(ctx context.Context, bucket string, maxAge time.Durat if operations.SkipDestructive(ctx, what, "remove pending upload") { continue } - ignoreErr := f.abortMultiPartUpload(ctx, *upload.Bucket, *upload.Object, *upload.UploadId) - if ignoreErr != nil { - // fs.Debugf(f, "ignoring error %s", ignoreErr) - } - } else { - // fs.Debugf(f, "ignoring %s", what) + _ = f.abortMultiPartUpload(ctx, *upload.Bucket, *upload.Object, *upload.UploadId) } } else { fs.Infof(f, "MultipartUpload doesn't have sufficient details to abort.")