去除重复判断。
parent
3c65e701f1
commit
52d248c35e
|
@ -38,6 +38,6 @@ public class AccountInfo implements IValueObject {
|
|||
} catch (MalformedURLException e) {
|
||||
throw new IllegalArgumentException(e);
|
||||
}
|
||||
return new AccountInfo(Nickname.ofNullable(nickname), avatarURL, Objects.nonNull(sex) ? sex : Sex.UNSET);
|
||||
return new AccountInfo(Nickname.ofNullable(nickname), avatarURL, sex);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue