flutter_desktop: remove unnecessary control flow

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2022-08-03 22:13:40 +08:00
parent 7a2de5d280
commit 0488eb31f5
3 changed files with 8 additions and 12 deletions

View File

@@ -18,7 +18,7 @@ class UserModel extends ChangeNotifier {
if (userName.isNotEmpty) {
return userName.value;
}
final userInfo = await bind.mainGetLocalOption(key: 'user_info') ?? "{}";
final userInfo = await bind.mainGetLocalOption(key: 'user_info');
if (userInfo.trim().isEmpty) {
return "";
}