diff --git a/src/Blobify/Commands/ArchiveCommand.cs b/src/Blobify/Commands/ArchiveCommand.cs index 217801b..e993abe 100644 --- a/src/Blobify/Commands/ArchiveCommand.cs +++ b/src/Blobify/Commands/ArchiveCommand.cs @@ -111,7 +111,7 @@ out var mimeType switch (await tokenService.HeadAsync(settings.AzureTenantId, targetUri)) { case (HttpStatusCode.OK, _, byte[] md5Hash): - if (md5Hash.SequenceEqual(hash.ComputedHash)) + if (md5Hash.SequenceEqual(hash.ComputedHash)) { logger.LogInformation("Blob {File} found and hash match deleting...", targetPath.FullPath); file.Delete(); @@ -120,6 +120,7 @@ out var mimeType { throw new Exception($"Blob {targetPath.FullPath} found blob but hash mismatch, won't delete."); } + return; } }