Skip to content

Commit

Permalink
Update defaultDataForPath.js: s/result =/var result =/g (#331)
Browse files Browse the repository at this point in the history
Declare result as a variable prior to assignment.
  • Loading branch information
ThirstilyVague authored Jun 10, 2024
1 parent d92bb20 commit 1a819dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/defaultDataForPath/defaultDataForPath.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand All @@ -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 {
Expand Down

0 comments on commit 1a819dc

Please sign in to comment.