Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
River2000i committed Dec 20, 2024
1 parent 380a7c7 commit a573ffe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dm/pkg/storage/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func RemoveAll(ctx context.Context, dir string, storage bstorage.ExternalStorage
if backend.GetGcs() != nil && errors.Cause(err2) == gstorage.ErrObjectNotExist {
return nil
}
if backend.GetAzureBlobStorage() != nil || bloberror.HasCode(err2, bloberror.BlobNotFound) {
if backend.GetAzureBlobStorage() != nil && bloberror.HasCode(err2, bloberror.BlobNotFound) {
return nil
}
return err2
Expand All @@ -162,7 +162,7 @@ func RemoveAll(ctx context.Context, dir string, storage bstorage.ExternalStorage
if backend.GetGcs() != nil && errors.Cause(err) == gstorage.ErrObjectNotExist {
return nil
}
if backend.GetAzureBlobStorage() != nil || bloberror.HasCode(err, bloberror.BlobNotFound) {
if backend.GetAzureBlobStorage() != nil && bloberror.HasCode(err, bloberror.BlobNotFound) {
return nil
}
}
Expand Down

0 comments on commit a573ffe

Please sign in to comment.