From 52d248c35e2165bf588e3baaad0fab6ce0381b63 Mon Sep 17 00:00:00 2001 From: ZhouXY108 Date: Sat, 10 Dec 2022 02:07:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E9=87=8D=E5=A4=8D=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../zhouxy/plusone/system/domain/model/account/AccountInfo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plusone-system/plusone-system-domain/src/main/java/xyz/zhouxy/plusone/system/domain/model/account/AccountInfo.java b/plusone-system/plusone-system-domain/src/main/java/xyz/zhouxy/plusone/system/domain/model/account/AccountInfo.java index 3fcafbb..ed03983 100644 --- a/plusone-system/plusone-system-domain/src/main/java/xyz/zhouxy/plusone/system/domain/model/account/AccountInfo.java +++ b/plusone-system/plusone-system-domain/src/main/java/xyz/zhouxy/plusone/system/domain/model/account/AccountInfo.java @@ -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); } }