Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upRedundant use of `await` on a return value. #1209
Comments
This comment has been minimized.
This comment has been minimized.
|
the solution that I found is adding {} in arrow function |
TheEnmanuel23
closed this
Oct 8, 2018
This comment has been minimized.
This comment has been minimized.
|
This is intentional, it's because
is the same as
which then has a redundant
If you did not intend to return the return value of |
lock
bot
locked as resolved and limited conversation to collaborators
Jan 8, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
TheEnmanuel23 commentedOct 8, 2018
What version of standard?
12.0.1
What operating system, Node.js, and npm version?
macOS sierra v10.12.5
node: v8.9.3
npm: 5.5.1
What did you expect to happen?
No error, I have test with jest
in the version 11.0.1 it is working well for me
What actually happened?

throws error in the tests with async await