Skip to content

Remove unnecessary async-await#8

Open
dvinubius wants to merge 1 commit into
vladwulf:mainfrom
dvinubius:patch-1
Open

Remove unnecessary async-await#8
dvinubius wants to merge 1 commit into
vladwulf:mainfrom
dvinubius:patch-1

Conversation

@dvinubius

@dvinubius dvinubius commented Jan 29, 2023

Copy link
Copy Markdown

If I understand correctly, the .then( and .catch( execute on our promise, and there is nothing to await. GIven this is tutorial code, I find the change useful especially for beginners, since they might struggle with asynchronous syntax anyway.

If I understand correctly, the `.then(` and `.catch` execute on our promise, and there is nothing to `await`.
GIven this is tutorial code, I find the change useful especially for beginners, since they might struggle with asynchronous syntax anyway.
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.

1 participant