mirror of
https://github.com/rclone/rclone.git
synced 2026-10-26 21:38:41 -04:00
staticcheck: awserr.BatchError is deprecated: Replaced with BatchedErrors
This commit is contained in:
1 parent
92a43c5f7b
commit
986bb17656
1 file changed
+1
-1
+1
-1
@@ -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()}
|
||||
|
||||
Reference in new issue
Block a user