Skip to content

Commit

Permalink
scrape.js: avoid nested Promises
Browse files Browse the repository at this point in the history
There is no need to include "return Promise(...)" in an async function
because async/await is syntactic sugar for a Promise-returning function.
This caused two or even three layers (if the function given to the
Promise constructor was itself async) of nested Promises needlessly.
  • Loading branch information
psvenk committed Jun 16, 2020
1 parent 3ee5885 commit 11af9e6
Showing 1 changed file with 346 additions and 354 deletions.
Loading

0 comments on commit 11af9e6

Please sign in to comment.