From ea78f3fab9eff7d9b1fa0d500c6a882496d14673 Mon Sep 17 00:00:00 2001 From: huncozyboy Date: Fri, 22 Nov 2024 21:13:10 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EC=9C=A0=EC=A0=80=EA=B0=80=20?= =?UTF-8?q?=EC=A1=B4=EC=9E=AC=ED=95=98=EB=8A=94=EC=A7=80=20=EC=A4=91?= =?UTF-8?q?=EB=B3=B5=EB=90=9C=20=EA=B2=80=EC=A6=9D=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/user/application/usecase/UserUseCaseImpl.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main/java/leets/weeth/domain/user/application/usecase/UserUseCaseImpl.java b/src/main/java/leets/weeth/domain/user/application/usecase/UserUseCaseImpl.java index 0fa03458..49bcaaf3 100644 --- a/src/main/java/leets/weeth/domain/user/application/usecase/UserUseCaseImpl.java +++ b/src/main/java/leets/weeth/domain/user/application/usecase/UserUseCaseImpl.java @@ -6,7 +6,6 @@ import leets.weeth.domain.schedule.domain.service.MeetingGetService; import leets.weeth.domain.user.application.exception.StudentIdExistsException; import leets.weeth.domain.user.application.exception.TelExistsException; -import leets.weeth.domain.user.application.exception.UserNotFoundException; import leets.weeth.domain.user.application.mapper.UserMapper; import leets.weeth.domain.user.domain.entity.User; import leets.weeth.domain.user.domain.service.UserDeleteService; @@ -129,9 +128,6 @@ public List findAllByAdmin() { @Override public Response findUserDetails(Long userId) { User user = userGetService.find(userId); - if (user == null) { - throw new UserNotFoundException(); - } return mapper.toResponse(user); } @Override