-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
refactor(eslint-plugin): remove unnecessary if
-statements in explicitReturnTypeUtils
#3839
Conversation
Thanks for the PR, @MichaelDeBoey! typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community. The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately. Thanks again! 🙏 Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently on https://opencollective.com/typescript-eslint. As a thank you, your profile/company logo will be added to our main README which receives thousands of unique visitors per day. |
Codecov Report
@@ Coverage Diff @@
## master #3839 +/- ##
==========================================
- Coverage 93.51% 93.51% -0.01%
==========================================
Files 151 151
Lines 8144 8143 -1
Branches 2584 2582 -2
==========================================
- Hits 7616 7615 -1
Misses 167 167
Partials 361 361
Flags with carried forward coverage won't be shown. Click here to find out more.
|
cbd66d2
to
7ee984a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of an implicit boolean coercion via the Boolean
constructor - prefer an explicit logical check as it's clearer
7ee984a
to
22fec4e
Compare
I think i got the logic conversion wrong because I'm an idiot? Cos all the tests started failing. |
…citReturnTypeUtils`
22fec4e
to
3bd7a65
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
No description provided.