mirror of
https://github.com/rclone/rclone.git
synced 2024-11-23 00:43:49 +01:00
staticcheck: awserr.BatchError is deprecated: Replaced with BatchedErrors
This commit is contained in:
parent
92a43c5f7b
commit
986bb17656
@ -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…
Reference in New Issue
Block a user