Skip to content

Commit

Permalink
[fix] : 온보딩 if문 수정
Browse files Browse the repository at this point in the history
[fix] : 온보딩 if문 수정
  • Loading branch information
Jeoongu authored Aug 28, 2024
2 parents a5a74de + 51e3684 commit fd73ea2
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import ussum.homepage.domain.csv_user.StudentCsvRepository;
import ussum.homepage.global.error.exception.GeneralException;
import ussum.homepage.global.error.status.ErrorStatus;
import ussum.homepage.infra.jpa.csv_user.StudentCsvMapper;

import java.util.Optional;

Expand All @@ -30,7 +29,7 @@ private void checkStudentRight(OnBoardingRequest request, StudentCsv studentCsv)
boolean groupName = request.getMemberCode().equals(studentCsv.getGroupName());
boolean major = request.getMajorCode().equals(studentCsv.getMajor());

if(name && studentId && groupName && major == false){
if(!(name && studentId && groupName && major)){
throw new GeneralException(ErrorStatus.INVALID_ONBOARDING_REQUEST);
}
}
Expand Down

0 comments on commit fd73ea2

Please sign in to comment.