Skip to content

Commit 11434ba

Browse files
Merge validation logic into existing util method by adding contentValidationOptions parameter
Co-authored-by: gunjansingh-msft <[email protected]>
1 parent 035d6ea commit 11434ba

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/specialized/BlobAsyncClientBase.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,7 +1171,7 @@ public Mono<BlobDownloadAsyncResponse> downloadStreamWithResponse(BlobRange rang
11711171
BlobRequestConditions requestConditions, boolean getRangeContentMd5) {
11721172
try {
11731173
return withContext(
1174-
context -> downloadStreamWithResponse(range, options, requestConditions, getRangeContentMd5, context));
1174+
context -> downloadStreamWithResponse(range, options, requestConditions, getRangeContentMd5, null, context));
11751175
} catch (RuntimeException ex) {
11761176
return monoError(LOGGER, ex);
11771177
}
@@ -1312,12 +1312,6 @@ private Mono<BlobDownloadContentAsyncResponse> downloadContentWithResponseHelper
13121312
data, r.getDeserializedHeaders())));
13131313
}
13141314

1315-
Mono<BlobDownloadAsyncResponse> downloadStreamWithResponse(BlobRange range, DownloadRetryOptions options,
1316-
BlobRequestConditions requestConditions, boolean getRangeContentMd5, Context context) {
1317-
// Delegate to the overload with null content validation options
1318-
return downloadStreamWithResponse(range, options, requestConditions, getRangeContentMd5, null, context);
1319-
}
1320-
13211315
Mono<BlobDownloadAsyncResponse> downloadStreamWithResponse(BlobRange range, DownloadRetryOptions options,
13221316
BlobRequestConditions requestConditions, boolean getRangeContentMd5, DownloadContentValidationOptions contentValidationOptions, Context context) {
13231317

0 commit comments

Comments
 (0)