mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-09 11:42:21 +03:00
feat: simplify conditional
This commit is contained in:
parent
0fce444df8
commit
b0164b6948
@ -14,12 +14,10 @@ const filterGames = async (games: Steam250Game[]) => {
|
|||||||
for (const game of games) {
|
for (const game of games) {
|
||||||
const steamGame = await getSteamGameById(game.objectID);
|
const steamGame = await getSteamGameById(game.objectID);
|
||||||
|
|
||||||
if (steamGame) {
|
if (steamGame?.repacks.length) {
|
||||||
if (steamGame.repacks.length) {
|
|
||||||
results.push(game);
|
results.push(game);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return results;
|
return results;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user