Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix a little redundant code in Row#initialize

  • Loading branch information...
commit d8667ac0555f960939749a651183120a07947a4c 1 parent 66208ef
@rrrene rrrene authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/terminal-table/row.rb
View
2  lib/terminal-table/row.rb
@@ -20,7 +20,7 @@ def initialize table, array
else
index = 0
array.map do |item|
- options = item.is_a?(Hash) ? item : {:value => item, :index => index}
+ options = item.is_a?(Hash) ? item : {:value => item}
cell = Cell.new(options.merge(:index => index, :table => @table))
index += cell.colspan
cell
Please sign in to comment.
Something went wrong with that request. Please try again.