From 78759548c0ab7d3b69dd66fa5b68ca4420c3973d Mon Sep 17 00:00:00 2001 From: OZGCloud <ozgcloud@mgm-tp.com> Date: Mon, 16 Dec 2024 17:22:34 +0100 Subject: [PATCH] OZG-6810 fix formatting --- .../de/ozgcloud/nachrichten/file/AttachmentFileService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nachrichten-manager-server/src/main/java/de/ozgcloud/nachrichten/file/AttachmentFileService.java b/nachrichten-manager-server/src/main/java/de/ozgcloud/nachrichten/file/AttachmentFileService.java index 2e2b1cc..6fc1895 100644 --- a/nachrichten-manager-server/src/main/java/de/ozgcloud/nachrichten/file/AttachmentFileService.java +++ b/nachrichten-manager-server/src/main/java/de/ozgcloud/nachrichten/file/AttachmentFileService.java @@ -90,7 +90,7 @@ public class AttachmentFileService { } } - void writeFileContent(String fileId,OutputStream outputStream) { + void writeFileContent(String fileId, OutputStream outputStream) { taskExecutor.execute(() -> { ozgCloudFileService.writeFileDataToStream(fileIdMapper.toFileId(fileId), outputStream); IOUtils.closeQuietly(outputStream, e -> LOG.warn("Cannot close output stream", e)); @@ -99,8 +99,8 @@ public class AttachmentFileService { public String uploadAttachmentFile(AttachmentFile attachmentFile, String fileContent) { var decodedContent = Base64.getDecoder().decode(fileContent); - var ozgCloudFileId = ozgCloudFileService.uploadFile(attachmentFileMapper.toOzgCloudUploadFile( - addContentTypeIfMissing(attachmentFile, decodedContent)), + var ozgCloudFileId = ozgCloudFileService.uploadFile( + attachmentFileMapper.toOzgCloudUploadFile(addContentTypeIfMissing(attachmentFile, decodedContent)), toInputStream(decodedContent)); return ozgCloudFileId.toString(); } -- GitLab