Skip to content

Commit

Permalink
remove Delete.builder()
Browse files Browse the repository at this point in the history
Signed-off-by: Etienne Homer <etiennehomer@gmail.com>
  • Loading branch information
etiennehomer committed Nov 7, 2024
1 parent 5c8f7f0 commit 6cf316c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ public void deleteCase(UUID caseUuid) {
if (!objectsToDelete.isEmpty()) {
DeleteObjectsRequest deleteObjectsRequest = DeleteObjectsRequest.builder()
.bucket(bucketName)
.delete(Delete.builder().objects(objectsToDelete).build())
.delete(delete -> delete.objects(objectsToDelete))
.build();
s3Client.deleteObjects(deleteObjectsRequest);
caseInfosService.deleteCaseInfosByUuid(caseUuid.toString());
Expand All @@ -536,7 +536,7 @@ public void deleteAllCases() {
if (!objectsToDelete.isEmpty()) {
DeleteObjectsRequest deleteObjectsRequest = DeleteObjectsRequest.builder()
.bucket(bucketName)
.delete(Delete.builder().objects(objectsToDelete).build())
.delete(delete -> delete.objects(objectsToDelete))
.build();

s3Client.deleteObjects(deleteObjectsRequest);
Expand Down

0 comments on commit 6cf316c

Please sign in to comment.