Skip to content

Commit

Permalink
Merge pull request #145 from Team-Going/feature/143
Browse files Browse the repository at this point in the history
[refactor] 개별 프로필 조회 비즈니스 로직 리팩터링
  • Loading branch information
gardening-y authored Mar 7, 2024
2 parents bca151c + ae26b99 commit a80c6f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,11 @@ private boolean isEqualUserAndParticipantUser(User user, User participantUser) {
}

private int getValidatedResult(User user) {
try {
return user.getResult().getNumResult();
} catch (NullPointerException e) {
if (user.getResult() == null) {
return -1;
}
else {
return user.getResult().getNumResult();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public enum Result {
AEP(6, "AEP"),
AEI(7, "AEI");

private final int numResult;
private final Integer numResult;
private final String stringResult;

public static Result getEnumResultFromStringResult(String stringResult) {
Expand Down

0 comments on commit a80c6f7

Please sign in to comment.