Skip to content

Commit 84211f9

Browse files
committed
Remove redundant null check
1 parent 06a3b5d commit 84211f9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

modules/repository-azure/src/main/java/org/elasticsearch/repositories/azure/AzureBlobStore.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,8 +374,7 @@ public Map<String, BlobMetadata> listBlobsByPrefix(OperationPurpose purpose, Str
374374

375375
for (final BlobItem blobItem : containerClient.listBlobsByHierarchy("/", listBlobsOptions, null)) {
376376
BlobItemProperties properties = blobItem.getProperties();
377-
Boolean isPrefix = blobItem.isPrefix();
378-
if (isPrefix != null && isPrefix) {
377+
if (blobItem.isPrefix()) {
379378
continue;
380379
}
381380
String blobName = blobItem.getName().substring(keyPath.length());

0 commit comments

Comments
 (0)