Skip to content

Commit

Permalink
[CHORE] 컨벤션 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
paragon0107 committed Jul 31, 2024
1 parent ce85328 commit 4331610
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ public Optional<Member> findByEmail(String email) {
}

public Member findById(long memberId) {
return memberRepository.findById(memberId)
.orElseThrow(() -> new MemberException(INVALID_MEMBER));
return memberRepository.findById(memberId).orElseThrow(() -> new MemberException(INVALID_MEMBER));
}

public Member checkEmpty(String email) {
Expand Down
10 changes: 7 additions & 3 deletions src/main/java/com/tiki/server/member/entity/Member.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,13 @@ public class Member extends BaseTime {
@Enumerated(value = STRING)
private University univ;

public static Member of(String email, String password, String passwordChecker, String name, LocalDate birth,
University univ) {

public static Member of(
String email,
String password,
String passwordChecker,
String name,
LocalDate birth,
University univ) {
val member = Member.builder()
.email(email)
.password(password)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ private void saveMember(Member member) {
memberSaver.save(member);
}


public BelongTeamsGetResponse findBelongTeams(long memberId) {
return BelongTeamsGetResponse.from(memberTeamManagerFinder.findBelongTeamByMemberId(memberId));
}
Expand Down

0 comments on commit 4331610

Please sign in to comment.