Skip to content

Commit

Permalink
fix(fetch): s/throw new error/throw error/
Browse files Browse the repository at this point in the history
  • Loading branch information
gadicc committed Jan 30, 2021
1 parent ca5715a commit 084990d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/yahooFinanceFetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ async function yahooFinanceFetch(urlBase, params={}, fetchOptionsOverrides={}, f
console.error(url);
const error = new errors.HTTPError(res.statusText);
error.code = res.status;
throw new error;
throw error;
}

return result;
Expand Down

0 comments on commit 084990d

Please sign in to comment.