-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Don't generate code for a non-updating if block #3478
Conversation
@transition_in(${name}, 1);`} | ||
} | ||
`; | ||
if (!branch.dependencies || branch.dependencies.length > 0) { |
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.
When is branch.dependencies
falsy? It seems weird to do something when it's falsy or it's a non-empty array.
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.
It's falsy when the condition is simple (e.g. {#if foo}
). I've changed that so that it's always there — makes a bit more sense now
Codecov Report
@@ Coverage Diff @@
## master #3478 +/- ##
=======================================
Coverage 50.25% 50.25%
=======================================
Files 1 1
Lines 197 197
=======================================
Hits 99 99
Misses 98 98 Continue to review full report at Codecov.
|
Follow-up to #3452, fixes #3447. Marking WIP because there's a case this doesn't fix