Browse Source

minor change

ashilkn 2 years ago
parent
commit
c402d8f5d7
1 changed files with 1 additions and 5 deletions
  1. 1 5
      lib/core/configuration.dart

+ 1 - 5
lib/core/configuration.dart

@@ -577,11 +577,7 @@ class Configuration {
   }
   }
 
 
   bool shouldHideFromRecents() {
   bool shouldHideFromRecents() {
-    if (_preferences.containsKey(keyShouldHideFromRecents)) {
-      return _preferences.getBool(keyShouldHideFromRecents)!;
-    } else {
-      return false;
-    }
+    return _preferences.getBool(keyShouldHideFromRecents) ?? false;
   }
   }
 
 
   Future<void> setShouldHideFromRecents(bool value) {
   Future<void> setShouldHideFromRecents(bool value) {