From a573ffeb0d337033e13a93722287d9ff5476767a Mon Sep 17 00:00:00 2001 From: Jiaqiang Huang <96465211+River2000i@users.noreply.github.com> Date: Fri, 20 Dec 2024 15:17:42 +0800 Subject: [PATCH] fix --- dm/pkg/storage/utils.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dm/pkg/storage/utils.go b/dm/pkg/storage/utils.go index 0232dcfbfec..ac1517b6a6a 100644 --- a/dm/pkg/storage/utils.go +++ b/dm/pkg/storage/utils.go @@ -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 @@ -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 } }