Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
joelhawksley committed Aug 26, 2024
1 parent 1331e41 commit ac048cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/view_component/compiler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def define_render_template_for
body = +""

branches.each do |conditional, method_body|
body << "#{!body.present? ? "if" : "elsif"} #{conditional}\n #{method_body}\n"
body << "#{(!body.present?) ? "if" : "elsif"} #{conditional}\n #{method_body}\n"
end

body << "else\n #{default_method_name}\nend"
Expand Down

0 comments on commit ac048cb

Please sign in to comment.