去除重复判断。
This commit is contained in:
parent
3c65e701f1
commit
52d248c35e
@ -38,6 +38,6 @@ public class AccountInfo implements IValueObject {
|
|||||||
} catch (MalformedURLException e) {
|
} catch (MalformedURLException e) {
|
||||||
throw new IllegalArgumentException(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…
x
Reference in New Issue
Block a user