feat: simplify conditional

This commit is contained in:
Zamitto 2024-09-12 13:15:24 -03:00
parent 0fce444df8
commit b0164b6948

View File

@ -14,10 +14,8 @@ const filterGames = async (games: Steam250Game[]) => {
for (const game of games) {
const steamGame = await getSteamGameById(game.objectID);
if (steamGame) {
if (steamGame.repacks.length) {
results.push(game);
}
if (steamGame?.repacks.length) {
results.push(game);
}
}