Skip to content

Commit

Permalink
refactor: modify updateFamilyName logic when familyName is null
Browse files Browse the repository at this point in the history
  • Loading branch information
Ji-soo708 committed Jun 26, 2024
1 parent f228ed3 commit ff716ca
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions family/src/main/java/com/oing/domain/Family.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,11 @@ public void resetScore() {
}

public void updateFamilyName(String familyName, String loginFamilyId) {
if (familyName == null) {
this.familyName = null;
this.familyNameEditorId = null;
} else {
if (familyName != null) {
validateFamilyName(familyName);
this.familyName = familyName;
this.familyNameEditorId = loginFamilyId;
}
this.familyName = familyName;
this.familyNameEditorId = loginFamilyId;
}

private void validateFamilyName(String familyName) {
Expand Down

0 comments on commit ff716ca

Please sign in to comment.