Shortened return

This commit is contained in:
2025-07-03 13:09:09 +02:00
parent 6f0cd81714
commit 3aab472197

View File

@@ -43,9 +43,7 @@ class GameManager extends ChangeNotifier {
} }
bool gameExistsInGameList(String id) { bool gameExistsInGameList(String id) {
return gameList.any((session) => session.id.toString() == id) == -1 return gameList.any((session) => session.id.toString() == id);
? false
: true;
} }
} }