File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
src/main/java/com/somemore/recruitboard Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -73,10 +73,6 @@ public boolean isWriter(UUID centerId) {
7373 return this .centerId .equals (centerId );
7474 }
7575
76- public boolean isNotWriter (UUID centerId ) {
77- return !isWriter (centerId );
78- }
79-
8076 public void updateWith (RecruitBoardUpdateRequestDto dto , String imgUrl ) {
8177 updateVolunteerInfo (dto );
8278 this .title = dto .title ();
Original file line number Diff line number Diff line change @@ -59,8 +59,10 @@ public void updateRecruitBoardLocation(RecruitBoardLocationUpdateRequestDto requ
5959 }
6060
6161 private void validateWriter (RecruitBoard recruitBoard , UUID centerId ) {
62- if (recruitBoard .isNotWriter (centerId )) {
63- throw new BadRequestException ( UNAUTHORIZED_RECRUIT_BOARD . getMessage ()) ;
62+ if (recruitBoard .isWriter (centerId )) {
63+ return ;
6464 }
65+
66+ throw new BadRequestException (UNAUTHORIZED_RECRUIT_BOARD .getMessage ());
6567 }
6668}
You can’t perform that action at this time.
0 commit comments