Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
update :: S3UploadObjectImpl.java
Browse files Browse the repository at this point in the history
orElseGet 사용
  • Loading branch information
ori0o0p committed Apr 23, 2024
1 parent 2932da0 commit 7556ba9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public Mono<File> uploadObject(FilePart filePart, String fileType) {
.onErrorMap(e -> FileUploadFailedException.EXCEPTION);
});
})
.flatMap(response -> createFile(key, URLDecoder.decode(filename), type.orElse(null), fileType.toLowerCase()))
.flatMap(response -> createFile(key, URLDecoder.decode(filename), type.orElseGet(null), fileType.toLowerCase()))
.onErrorMap(e -> e instanceof FileUploadFailedException ? e : ExecuteFailedException.EXCEPTION);
}

Expand Down

0 comments on commit 7556ba9

Please sign in to comment.