mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-11 13:56:16 +00:00
renaming variables
This commit is contained in:
@@ -20,14 +20,13 @@ const getRandomGame = async (_event: Electron.IpcMainInvokeEvent) => {
|
||||
let resultObjectId = "";
|
||||
|
||||
while (!resultObjectId) {
|
||||
const game = gamesList[nextGameIndex];
|
||||
const repacks = searchRepacks(formatName(game.title));
|
||||
const nextGame = gamesList[nextGameIndex];
|
||||
const repacks = searchRepacks(formatName(nextGame.title));
|
||||
|
||||
if (repacks.length) {
|
||||
const catalogueResults = await searchGames({ query: game.title });
|
||||
|
||||
const catalogueResults = await searchGames({ query: nextGame.title });
|
||||
if (catalogueResults.length) {
|
||||
resultObjectId = game.objectID;
|
||||
resultObjectId = nextGame.objectID;
|
||||
}
|
||||
}
|
||||
nextGameIndex += 1;
|
||||
|
||||
Reference in New Issue
Block a user