Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up scrape.js #126

Merged
merged 4 commits into from
Sep 30, 2020
Merged

Clean up scrape.js #126

merged 4 commits into from
Sep 30, 2020

Conversation

psvenk
Copy link
Member

@psvenk psvenk commented Jun 16, 2020

Various changes to improve the formatting and layout of scrape.js.
I would advise that you view each diff separately and with git show -bB (which excludes whitespace changes).

@psvenk psvenk requested a review from notrodes June 22, 2020 23:33
Copy link
Collaborator

@notrodes notrodes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok

Unix-style line endings (LF) should be the default (as opposed to
DOS/Windows style, CRLF), especially considering that none of us needs
to use Windows.
Running `git show -bB <commit SHA>` should give a much more manageable
diff
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.
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants