去除重复判断。

pull/1/head
ZhouXY108 2022-12-10 02:07:09 +08:00
parent 3c65e701f1
commit 52d248c35e
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}