Skip to content

Commit

Permalink
Fix ruby 1.9 to directly cast to array.
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrmurach committed Apr 10, 2016
1 parent 0ec8b59 commit e459299
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tty/command/cmd.rb
Expand Up @@ -128,7 +128,7 @@ def to_hash
# @api private
def sanitize(value)
cmd = value.to_s.dup
lines = cmd.lines
lines = cmd.lines.to_a
lines.each_with_index.reduce('') do |acc, (line, index)|
acc << line.strip
acc << '; ' if (index + 1) != lines.size
Expand Down

0 comments on commit e459299

Please sign in to comment.