From cb0638d4ab010a987e9d4dfcb566be6cb204fb40 Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Tue, 24 Sep 2024 20:14:33 +1000 Subject: [PATCH] fix if indent --- src/Blobify/Commands/ArchiveCommand.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } }