Skip to content

Commit

Permalink
remove already checked formatter.applicable?
Browse files Browse the repository at this point in the history
  • Loading branch information
as-op committed Jun 5, 2024
1 parent 6ab7b50 commit 73aad7c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/models/work_package/pdf_export/markdown_field.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ def apply_macro_text(text, work_package, formatter)
end

def apply_macro_html(html, work_package, formatter)
return html unless formatter.applicable?(html)

doc = Nokogiri::HTML.fragment(html)
apply_macro_html_node(doc, work_package, formatter)
doc.to_html
Expand Down

0 comments on commit 73aad7c

Please sign in to comment.