Skip to content

Commit

Permalink
Merge pull request #50 from simonorono/fix-strict-mode
Browse files Browse the repository at this point in the history
Declare `response` variable
  • Loading branch information
Naramsim authored May 16, 2021
2 parents 1aee529 + 8a228d7 commit dc0d5ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/getter.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ exports.getJSON = async (values, url, cb) => {
}
return cachedResult
} else {
response = await axios.get(url, options)
let response = await axios.get(url, options)
// if there is an error
if (response.statusCode !== undefined && response.statusCode !== 200) {
handleError(response, cb)
Expand Down

0 comments on commit dc0d5ad

Please sign in to comment.