Skip to content

Commit

Permalink
Run lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mcm001 committed Oct 17, 2023
1 parent bc14dc2 commit d04d44e
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -497,15 +497,21 @@ private static Optional<File> handleTempFileCreation(UploadedFile file) {

if (!makeDirsRes && !(tempFilePath.getParentFile().exists())) {
logger.error(
"There was an error while creating " + tempFilePath.getAbsolutePath() + "! Exists: " + tempFilePath.getParentFile().exists());
"There was an error while creating "
+ tempFilePath.getAbsolutePath()
+ "! Exists: "
+ tempFilePath.getParentFile().exists());
return Optional.empty();
}

try {
FileUtils.copyInputStreamToFile(file.content(), tempFilePath);
} catch (IOException e) {
logger.error(
"There was an error while copying " + file.filename() + " to the temp file " + tempFilePath.getAbsolutePath());
"There was an error while copying "
+ file.filename()
+ " to the temp file "
+ tempFilePath.getAbsolutePath());
return Optional.empty();
}

Expand Down

0 comments on commit d04d44e

Please sign in to comment.