From 1a819dc2666bc629ecb405bb7f4eb609cd361f62 Mon Sep 17 00:00:00 2001 From: ThirstilyVague Date: Mon, 10 Jun 2024 18:30:53 -0400 Subject: [PATCH] Update defaultDataForPath.js: s/result =/var result =/g (#331) Declare result as a variable prior to assignment. --- plugins/defaultDataForPath/defaultDataForPath.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/defaultDataForPath/defaultDataForPath.js b/plugins/defaultDataForPath/defaultDataForPath.js index aa8d61b4..b39441b9 100644 --- a/plugins/defaultDataForPath/defaultDataForPath.js +++ b/plugins/defaultDataForPath/defaultDataForPath.js @@ -241,7 +241,7 @@ function getTagId(tagName) { }, }; - result = gql.Do(query, variables); + var result = gql.Do(query, variables); if (result.findTags.tags[0]) { return result.findTags.tags[0].id; } else { @@ -267,7 +267,7 @@ function getPerformerId(performerName) { }, }; - result = gql.Do(query, variables); + var result = gql.Do(query, variables); if (result.findPerformers.performers[0]) { return result.findPerformers.performers[0].id; } else { @@ -293,7 +293,7 @@ function getStudioId(studioName) { }, }; - result = gql.Do(query, variables); + var result = gql.Do(query, variables); if (result.findStudios.studios[0]) { return result.findStudios.studios[0].id; } else {