Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ private int removeBlobsByFilter(Predicate<? super Blob> filter) {
.toList();
List<Boolean> deletedBlobsResults = new ArrayList<>();
if (!blobIds.isEmpty()) {
deletedBlobsResults = deleteBlobs(blobIds);
deletedBlobsResults.addAll(deleteBlobs(blobIds));
}

deletedBlobsResults.removeIf(Boolean.FALSE::equals);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import java.util.List;
import java.util.Map;
import java.util.UUID;

import com.google.cloud.storage.Blob;
import com.google.cloud.storage.BlobId;
import com.google.cloud.storage.BlobInfo;
Expand All @@ -17,7 +16,6 @@
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.springframework.http.MediaType;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNull;

Expand All @@ -43,7 +41,7 @@ protected List<Boolean> deleteBlobs(List<BlobId> blobIds) {
for (BlobId blobId : blobIds) {
deletedBlobsResults.add(storage.delete(blobId));
}
return deletedBlobsResults;
return List.copyOf(deletedBlobsResults);
}
};
spaceId = UUID.randomUUID()
Expand Down
Loading