Skip to content

Commit

Permalink
refactor: 유저가 존재하는지 중복된 검증 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
huncozyboy committed Nov 22, 2024
1 parent 1d7ae00 commit ea78f3f
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -129,9 +128,6 @@ public List<AdminResponse> findAllByAdmin() {
@Override
public Response findUserDetails(Long userId) {
User user = userGetService.find(userId);
if (user == null) {
throw new UserNotFoundException();
}
return mapper.toResponse(user);
}
@Override
Expand Down

0 comments on commit ea78f3f

Please sign in to comment.