Shortened return
This commit is contained in:
@@ -43,9 +43,7 @@ class GameManager extends ChangeNotifier {
|
||||
}
|
||||
|
||||
bool gameExistsInGameList(String id) {
|
||||
return gameList.any((session) => session.id.toString() == id) == -1
|
||||
? false
|
||||
: true;
|
||||
return gameList.any((session) => session.id.toString() == id);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user