staticcheck: awserr.BatchError is deprecated: Replaced with BatchedErrors

This commit is contained in:
albertony 2022-06-24 18:36:46 +02:00
parent 92a43c5f7b
commit 986bb17656
1 changed files with 1 additions and 1 deletions

View File

@ -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()}