Shortened return
This commit is contained in:
@@ -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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user