Skip to content

Commit 8b47b02

Browse files
committed
Resolve lint errors
1 parent 6b7fd28 commit 8b47b02

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/kramdown/converter/odin_html.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ module OdinHtml
88
EXTERNAL_LINK_ATTRIBUTES = { target: '_blank', rel: 'noopener noreferrer' }.freeze
99

1010
def convert_img(element, _indent)
11-
12-
return super if @stack.last.type == :a or element.attr['alt'] == ""
11+
return super if @stack.last.type == :a || element.attr['alt'] == ''
1312

1413
attributes = { href: element.attr['src'] }.merge(EXTERNAL_LINK_ATTRIBUTES)
1514
%(<a#{html_attributes(attributes)}>#{super}</a>)

0 commit comments

Comments
 (0)