diff --git a/src/main/java/page/clab/api/domain/activity/activitygroup/domain/ActivityGroupBoard.java b/src/main/java/page/clab/api/domain/activity/activitygroup/domain/ActivityGroupBoard.java index a6b126423..46df30c37 100644 --- a/src/main/java/page/clab/api/domain/activity/activitygroup/domain/ActivityGroupBoard.java +++ b/src/main/java/page/clab/api/domain/activity/activitygroup/domain/ActivityGroupBoard.java @@ -84,9 +84,7 @@ public void update(ActivityGroupBoardUpdateRequestDto requestDto, UploadedFileSe Optional.ofNullable(requestDto.getTitle()).ifPresent(this::setTitle); Optional.ofNullable(requestDto.getContent()).ifPresent(this::setContent); Optional.ofNullable(requestDto.getDueDateTime()).ifPresent(this::setDueDateTime); - Optional.ofNullable(requestDto.getFileUrls()).ifPresent(urls -> { - this.setUploadedFiles(uploadedFileService.getUploadedFilesByUrls(urls)); - }); + Optional.ofNullable(requestDto.getFileUrls()).ifPresent(urls -> this.setUploadedFiles(uploadedFileService.getUploadedFilesByUrls(urls))); } public void addChild(ActivityGroupBoard child) { diff --git a/src/main/java/page/clab/api/global/common/email/api/EmailController.java b/src/main/java/page/clab/api/global/common/email/api/EmailController.java index e807d844d..0e08f541e 100644 --- a/src/main/java/page/clab/api/global/common/email/api/EmailController.java +++ b/src/main/java/page/clab/api/global/common/email/api/EmailController.java @@ -34,10 +34,7 @@ public ApiResponse> broadcastEmail( EmailDto emailDto, @RequestParam(name = "multipartFile", required = false) List files ) { - CompletableFuture> emailTask = CompletableFuture.supplyAsync(() -> { - return emailService.broadcastEmail(emailDto, files); - }); - + CompletableFuture> emailTask = CompletableFuture.supplyAsync(() -> emailService.broadcastEmail(emailDto, files)); List successfulAddresses = emailTask.join(); return ApiResponse.success(successfulAddresses); } @@ -49,10 +46,7 @@ public ApiResponse> broadcastEmailToAllMember( EmailDto emailDto, @RequestParam(name = "multipartFile", required = false) List files ) { - CompletableFuture> emailTask = CompletableFuture.supplyAsync(() -> { - return emailService.broadcastEmailToAllMember(emailDto, files); - }); - + CompletableFuture> emailTask = CompletableFuture.supplyAsync(() -> emailService.broadcastEmailToAllMember(emailDto, files)); List successfulEmails = emailTask.join(); return ApiResponse.success(successfulEmails); } diff --git a/src/main/java/page/clab/api/global/util/IPInfoUtil.java b/src/main/java/page/clab/api/global/util/IPInfoUtil.java index 433bf0d78..dcb65d22b 100644 --- a/src/main/java/page/clab/api/global/util/IPInfoUtil.java +++ b/src/main/java/page/clab/api/global/util/IPInfoUtil.java @@ -31,9 +31,8 @@ public static IPInfoResponse getIpInfo(String ipAddress) { .header("Authorization", "Bearer " + accessToken) .accept(MediaType.APPLICATION_JSON) .retrieve() - .onStatus(HttpStatusCode::is4xxClientError, ((request, response) -> { - log.warn("4xx error occurred while getting ip info. Status code: {}", response.getStatusCode()); - })) + .onStatus(HttpStatusCode::is4xxClientError, ((request, response) -> + log.warn("4xx error occurred while getting ip info. Status code: {}", response.getStatusCode()))) .body(IPInfoResponse.class); }