mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
refactor: reduce code redundance
This commit is contained in:
parent
08d320ad1c
commit
c2a52d3c18
1 changed files with 3 additions and 11 deletions
|
@ -43,17 +43,9 @@ const gamesIdWithoutPath = async () => {
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const gameExecutableIds: string[] = [];
|
return games
|
||||||
|
.filter((game) => gameExecutables[game.objectID])
|
||||||
for (const game of games) {
|
.map((game) => game.objectID);
|
||||||
const has = gameExecutables[game.objectID];
|
|
||||||
|
|
||||||
if (has) {
|
|
||||||
gameExecutableIds.push(game.objectID);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return gameExecutableIds;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const findGamePathByProcess = (
|
const findGamePathByProcess = (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue