Apply else-after-return across the tree

This commit is contained in:
AI-scor 2026-11-10 19:18:53 +01:00
parent 5c7ac6412e
commit 012b30c9de
22 changed files with 48 additions and 25 deletions

View file

@ -33,7 +33,8 @@ AbstractClient *AbstractGame::getClientForPlayer(int playerId) const
}
return gameState->getClients().at(playerId);
} else if (gameState->getClients().isEmpty()) {
}
if (gameState->getClients().isEmpty()) {
return nullptr;
} else {
return gameState->getClients().first();