Skip to content

Commit

Permalink
Consolidate behavior of options (#13339)
Browse files Browse the repository at this point in the history
  • Loading branch information
gapra-msft authored Jul 20, 2020
1 parent 588ac7b commit 8355cc5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1374,7 +1374,7 @@ public Mono<Response<Map<String, String>>> getTagsWithResponse(BlobGetTagsOption
}

Mono<Response<Map<String, String>>> getTagsWithResponse(BlobGetTagsOptions options, Context context) {
StorageImplUtils.assertNotNull("options", options);
options = (options == null) ? new BlobGetTagsOptions() : options;
BlobRequestConditions requestConditions = (options.getRequestConditions() == null)
? new BlobRequestConditions() : options.getRequestConditions();
return this.azureBlobStorage.blobs().getTagsWithRestResponseAsync(null, null, null, null, snapshot,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ public Mono<Response<String>> renewLeaseWithResponse(BlobRenewLeaseOptions optio
}

Mono<Response<String>> renewLeaseWithResponse(BlobRenewLeaseOptions options, Context context) {
StorageImplUtils.assertNotNull("options", options);
options = (options == null) ? new BlobRenewLeaseOptions() : options;
BlobLeaseRequestConditions requestConditions = (options.getRequestConditions() == null)
? new BlobLeaseRequestConditions() : options.getRequestConditions();
context = context == null ? Context.NONE : context;
Expand Down Expand Up @@ -321,7 +321,7 @@ public Mono<Response<Void>> releaseLeaseWithResponse(BlobReleaseLeaseOptions opt
}

Mono<Response<Void>> releaseLeaseWithResponse(BlobReleaseLeaseOptions options, Context context) {
StorageImplUtils.assertNotNull("options", options);
options = (options == null) ? new BlobReleaseLeaseOptions() : options;
BlobLeaseRequestConditions requestConditions = (options.getRequestConditions() == null)
? new BlobLeaseRequestConditions() : options.getRequestConditions();
context = context == null ? Context.NONE : context;
Expand Down Expand Up @@ -414,7 +414,7 @@ public Mono<Response<Integer>> breakLeaseWithResponse(BlobBreakLeaseOptions opti
}

Mono<Response<Integer>> breakLeaseWithResponse(BlobBreakLeaseOptions options, Context context) {
StorageImplUtils.assertNotNull("options", options);
options = (options == null) ? new BlobBreakLeaseOptions() : options;
BlobLeaseRequestConditions requestConditions = (options.getRequestConditions() == null)
? new BlobLeaseRequestConditions() : options.getRequestConditions();
context = context == null ? Context.NONE : context;
Expand Down

0 comments on commit 8355cc5

Please sign in to comment.