Update defaultDataForPath.js: s/result =/var result =/g (#331)

Declare result as a variable prior to assignment.
This commit is contained in:
ThirstilyVague
2024-06-10 18:30:53 -04:00
committed by GitHub
parent d92bb20b9e
commit 1a819dc266

View File

@@ -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 {