8000 Minor Twig optimization · symfony/swiftmailer-bundle@8c78235 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Feb 6, 2022. It is now read-only.

Commit 8c78235

Browse files
committed
Minor Twig optimization
1 parent f82d68f commit 8c78235

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Resources/views/Collector/swiftmailer.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@
182182
</pre>
183183
</div>
184184

185-
{% for messagePart in message.children if messagePart.contentType == 'text/plain' or messagePart.contentType == 'text/html' %}
185+
{% for messagePart in message.children if messagePart.contentType in ['text/plain', 'text/html'] %}
186186
<div class="card-block">
187187
<span class="label">Alternative part ({{ messagePart.contentType }})</span>
188188
<pre>

0 commit comments

Comments
 (0)
0