From c5797b660b4106686782717f7abbb213d121a756 Mon Sep 17 00:00:00 2001 From: MillenniumEarl Date: Wed, 3 Mar 2021 21:17:37 +0100 Subject: [PATCH] Renamed conflictual variable --- src/example.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/example.ts b/src/example.ts index 7f986ed..4948d00 100644 --- a/src/example.ts +++ b/src/example.ts @@ -63,16 +63,16 @@ async function main() { query.keywords = gamename; // Fetch the first result - const result = await searchHandiwork(query, 1); + const searchResult = await searchHandiwork(query, 1); // No game found - if (result.length === 0) { + if (searchResult.length === 0) { console.log(`No data found for '${gamename}'`); continue; } // Extract first game - const gamedata = result.shift(); + const gamedata = searchResult.shift(); const authors = gamedata.authors.map((a, idx) => a.name).join(", "); console.log(`Found: ${gamedata.name} (${gamedata.version}) by ${authors}\n`); }