Skip to content

Commit

Permalink
attribute_merger: remove duplicate lines
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrock committed Jul 24, 2015
1 parent f8d8333 commit 6a38c61
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/temple/html/attribute_merger.rb
Expand Up @@ -30,12 +30,11 @@ def on_html_attrs(*attrs)
value.each_with_index {|v, i| exp << [:capture, "#{captures}[#{i}]", v] }
exp << [:dynamic, "#{captures}.reject(&:empty?).join(#{delimiter.inspect})"]
end
[:html, :attr, name, exp]
else
[:html, :attr, name, value.first]
exp = value.first
end
[:html, :attr, name, exp]
end

[:html, :attrs, *attrs]
end
end
Expand Down

0 comments on commit 6a38c61

Please sign in to comment.