mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-12 02:57:22 +00:00
flutter_desktop: remove unnecessary control flow
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
@@ -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 "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user