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

Commit

Permalink
Merge pull request #9 from daemawiki/develop
Browse files Browse the repository at this point in the history
awesome refactor
  • Loading branch information
wlalsplus100 authored Apr 23, 2024
2 parents a6b2866 + 7556ba9 commit d2f45a5
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 d2f45a5

Please sign in to comment.