Skip to content

Commit

Permalink
Merge pull request #8 from PickBas/fix-8810-aliyun
Browse files Browse the repository at this point in the history
[ISSUE #8810] aliyun/*: replaced .size() > 0 with isEmpty()
  • Loading branch information
PickBas authored Oct 13, 2023
2 parents 00e0b25 + 163fdcc commit 25efe14
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ Bucket getBucket(String bucketName) {
findBucketsByFilter(
file -> Files.isDirectory(file) && file.getFileName().endsWith(bucketName));

return buckets.size() > 0 ? buckets.get(0) : null;
return !buckets.isEmpty() ? buckets.get(0) : null;
}

void deleteBucket(String bucketName) throws IOException {
Expand Down

0 comments on commit 25efe14

Please sign in to comment.