Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

! Removed block from when node

[git-p4: depot-paths = "//src/ruby2ruby/dev/": change = 7375]
  • Loading branch information...
commit bc57cec8d538e05e839c7c4d2c08ec237e762797 1 parent 163eb40
Ryan Davis zenspider authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/ruby2ruby.rb
2  lib/ruby2ruby.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.