Skip to content

Commit

Permalink
[refac] refactor to use string constants
Browse files Browse the repository at this point in the history
  • Loading branch information
kgy1008 committed Jan 17, 2025
1 parent 6175eac commit 15800b4
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ public class User extends BaseTimeEntity {
@Column(nullable = false)
private UserStatus status;

private static final String DELETED_USER_DEFAULT_INFO = "알 수 없음";

public static User createUser(final String name, final String email, final String serialId, final Platform platform) {
return User.builder()
.name(name)
Expand All @@ -70,8 +72,8 @@ public static User createUser(final String name, final String email, final Strin
public void softDelete() {
updateStatus(INACTIVE);
updateDeletedAt(LocalDateTime.now());
this.name = "알 수 없음";
this.email = "알 수 없음";
this.name = DELETED_USER_DEFAULT_INFO;
this.email = DELETED_USER_DEFAULT_INFO;
}

public void rejoin(final String name, final String email) {
Expand Down

0 comments on commit 15800b4

Please sign in to comment.