Skip to content

feat(33792): Add quick fix for `This condition will always return true since the function is always defined. Did you mean to call it instead - #37152

Merged
Andrew Casey (amcasey) merged 2 commits into
microsoft:masterfrom
a-tarasyuk:feature/33792
Mar 13, 2020
Merged

Conversation

@a-tarasyuk

@a-tarasyuk Oleksandr Tarasiuk (a-tarasyuk) commented Mar 2, 2020

Copy link
Copy Markdown
Contributor

Fixes #33792

@j-oliveras

Copy link
Copy Markdown
Contributor

Fixes #37149?

@amcasey Andrew Casey (amcasey) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I can't wait to have this code fix, but I do have one concern.

Comment thread src/services/codefixes/fixMissingCallInCondition.ts Outdated
Comment thread src/compiler/diagnosticMessages.json Outdated
Comment thread src/services/codefixes/fixMissingCallParentheses.ts
@amcasey

Copy link
Copy Markdown
Member

Ron Buckton (@rbuckton) Andrew Branch (@andrewbranch) Last call for comments

@orta

Copy link
Copy Markdown
Contributor

Good work on the tests 👍

@amcasey
Andrew Casey (amcasey) merged commit fc30095 into microsoft:master Mar 13, 2020
@microsoft Microsoft (microsoft) locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Add quick fix for This condition will always return true since the function is always defined. Did you mean to call it instead

7 participants