forked from TrueCloudLab/rclone
staticcheck: awserr.BatchError is deprecated: Replaced with BatchedErrors
This commit is contained in:
parent
92a43c5f7b
commit
986bb17656
1 changed files with 1 additions and 1 deletions
|
@ -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()}
|
||||
|
|
Loading…
Add table
Reference in a new issue