Skip to content

Commit

Permalink
use HttpStatusCode
Browse files Browse the repository at this point in the history
  • Loading branch information
JhontSouth committed Nov 11, 2024
1 parent 01004af commit ea89182
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ internal BlobsStorage(BlobContainerClient containerClient, JsonSerializer jsonSe
ex);
}
catch (RequestFailedException ex)
when (ex.Status == 412)
when (ex.Status == (int)HttpStatusCode.PreconditionFailed)
{
throw new InvalidOperationException($"Etag conflict: {ex.Message}");
}
Expand Down

0 comments on commit ea89182

Please sign in to comment.