From 986bb176561be434a7cdb19df310ebb7d5f45296 Mon Sep 17 00:00:00 2001 From: albertony <12441419+albertony@users.noreply.github.com> Date: Fri, 24 Jun 2022 18:36:46 +0200 Subject: [PATCH] staticcheck: awserr.BatchError is deprecated: Replaced with BatchedErrors --- backend/s3/s3.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/s3/s3.go b/backend/s3/s3.go index 1693446b0..448b7c08f 100644 --- a/backend/s3/s3.go +++ b/backend/s3/s3.go @@ -4288,7 +4288,7 @@ func (o *Object) uploadMultipart(ctx context.Context, req *s3.PutObjectInput, si func unWrapAwsError(err error) (found bool, outErr error) { if awsErr, ok := err.(awserr.Error); ok { var origErrs []error - if batchErr, ok := awsErr.(awserr.BatchError); ok { + if batchErr, ok := awsErr.(awserr.BatchedErrors); ok { origErrs = batchErr.OrigErrs() } else { origErrs = []error{awsErr.OrigErr()}