Skip to content

Commit 3880ca7

Browse files
committed
remove unneeded null coalescing check on class var
1 parent 21ed7c8 commit 3880ca7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Templates/default/html/directives/admonition.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{# icons are from https://heroicons.com/ - MIT License #}
2-
<div class="admonition admonition-{{ name }} {{ class ?? '' }}">
2+
<div class="admonition admonition-{{ name }} {{ class }}">
33
<p class="admonition-title">
44
{% if name in ['admonition', 'note'] %}
55
<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="24" height="24" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z" /></svg>

0 commit comments

Comments
 (0)