-
-
Notifications
You must be signed in to change notification settings - Fork 247
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
fix(lib): typo in error message #68
Conversation
Codecov Report
@@ Coverage Diff @@
## master #68 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 1 1
Lines 37 37
Branches 12 12
=========================================
Hits 37 37
Continue to review full report at Codecov.
|
Hey there thanks for the PR, I was curious so I did my research too on this subject. It seems that the world of JavaScript developers is not quite sure about whether or not See:
To be honest, unless you find a bug or performance issue caused by the lines you updated, I won't be merging this. I still welcome your changes on the typos on the errors though :) Also, pure stylistic but I like to know whether or not a method is an async one. If you remove await from await ironStore then you now need to know that ironStore is an async function. Thanks anyway and I hope you'll submit more PRs here! |
The whole "no-return-await" rule/discussion seems to boil down to:
To confirm, unless we can prove it's significantly slower in real-world conditions (not in a loop trying to produce a significant slowdown). This is a stylistic choice and one that for now I haven't jumped on so we'll keep this part as it is, thanks! |
Thanks for this overview on this topic, I was "blindly" following my eslint rule. Sorry for the useless PR, I'll accept your changes to commit only the typo fix. |
Co-Authored-By: Vincent Voyer <vincent@codeagain.com>
Co-Authored-By: Vincent Voyer <vincent@codeagain.com>
Co-Authored-By: Vincent Voyer <vincent@codeagain.com>
return await
🎉 This PR is included in version 3.1.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
The PR is now only a fix for a typo problem.
It's useless to add an
await
when we already return a promise.See the eslint rule for example: https://eslint.org/docs/rules/no-return-await
(also fixed a small typo)
Edit: initially I removed both 2
await
s but as the first one is required to check the error, I created a variable to remove thereturn await
.Tell me what do you think :)