Skip to content

Commit

Permalink
Small refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Lennart ten Wolde authored and Lennart ten Wolde committed Apr 29, 2023
1 parent 0ecd197 commit 784e0e6
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,9 @@ private static async Task<bool> TryCreateBlobAsync(BlobClient blobClient, Cancel

private static async Task TryCreateBlobContainerAsync(BlobClient blobClient, CancellationToken cancellationToken)
{
var containerClient = blobClient.GetParentBlobContainerClient();

try
{
var containerClient = blobClient.GetParentBlobContainerClient();
await containerClient.CreateAsync(cancellationToken: cancellationToken);
}
catch (RequestFailedException exception) when (exception.Status == 409 || exception.Status == 412)
Expand Down

0 comments on commit 784e0e6

Please sign in to comment.