Skip to content

Commit

Permalink
! Removed block from when node
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//src/ruby2ruby/dev/": change = 7375]
  • Loading branch information
zenspider committed Apr 19, 2012
1 parent 163eb40 commit bc57cec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ruby2ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ def process_when(exp)

until exp.empty?
cond = process(exp.shift).to_s[1..-2]
code = indent(process(exp.shift))
code = indent(finish(exp).join("\n"))
code = indent "# do nothing" if code =~ /\A\s*\Z/
src << "when #{cond} then\n#{code.chomp}"
end
Expand Down

0 comments on commit bc57cec

Please sign in to comment.