Commit 533c37d
committed
minor #42010 Improve usage of twig ternary (Seb33300)
This PR was merged into the 4.4 branch.
Discussion
----------
Improve usage of twig ternary
| Q | A
| ------------- | ---
| Branch? | 5.4
| Bug fix? | no
| New feature? | no
| Deprecations? | no
| Tickets | none
| License | MIT
| Doc PR | none
Remove useless `else` condition when using twig ternary:
> `{{ foo ? 'yes' }}` is the same as `{{ foo ? 'yes' : '' }}`
See: https://twig.symfony.com/doc/3.x/templates.html#other-operators
Commits
-------
4be962d323 Improve usage of twig ternary1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
0 commit comments