Replace map with for statement

pull/77/head
MillenniumEarl 2021-03-10 17:41:08 +01:00
parent 43b3a63f41
commit 919503d95f
1 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@ async function main() {
);
// Get game data
gameList.map(async (gamename) => {
for (const gamename of gameList) {
console.log(`Searching '${gamename}'...`);
// Prepare the query
@ -109,5 +109,5 @@ async function main() {
const authors = gamedata.authors.map((a, idx) => a.name).join(", ");
console.log(`Found: ${gamedata.name} (${gamedata.version}) by ${authors}\n`);
} else console.log(`No data found for '${gamename}'\n`);
});
}
}