Skip to content

Commit

Permalink
Remove unused branch because it is not called from anywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
alpaca-tc committed Jan 4, 2021
1 parent da5803a commit 72104a2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions spec/erb_helper.rb
Expand Up @@ -14,11 +14,7 @@
end

ERBh.define_method(:cond) do |conds, m, e = nil|
if conds.is_a?(Hash)
conds.find do |c, _|
condition(c)
end&.last || m
elsif condition(conds)
if condition(conds)
m
else
e || (begin
Expand Down

0 comments on commit 72104a2

Please sign in to comment.