Skip to content

Commit

Permalink
Fix argument order of FromValue calls (#7930)
Browse files Browse the repository at this point in the history
  • Loading branch information
pakrym authored Oct 4, 2019
1 parent 69d8d63 commit cf84d64
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions sdk/storage/Azure.Storage.Blobs/src/BlobBaseClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2021,12 +2021,12 @@ private async Task<Response<bool>> DeleteIfExistsInternal(
cancellationToken,
Constants.Blob.Base.DeleteIfExists)
.ConfigureAwait(false);
return Response.FromValue(response, true);
return Response.FromValue(true, response);
}
catch (StorageRequestFailedException storageRequestFailedException)
when (storageRequestFailedException.ErrorCode == Constants.Blob.NotFound)
{
return Response.FromValue(default, false);
return Response.FromValue(false, default);
}
}

Expand Down
4 changes: 2 additions & 2 deletions sdk/storage/Azure.Storage.Blobs/src/BlobContainerClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -764,12 +764,12 @@ private async Task<Response<bool>> DeleteIfExistsInternal(
cancellationToken,
Constants.Blob.Container.DeleteIfExistsOperationName)
.ConfigureAwait(false);
return Response.FromValue(response, true);
return Response.FromValue(true, response);
}
catch (StorageRequestFailedException storageRequestFailedException)
when (storageRequestFailedException.ErrorCode == Constants.Blob.Container.NotFound)
{
return Response.FromValue(default, false);
return Response.FromValue(false, default);
}
}

Expand Down

0 comments on commit cf84d64

Please sign in to comment.