Permalink
Browse files

Fix a little redundant code in Row#initialize

  • Loading branch information...
1 parent 66208ef commit d8667ac0555f960939749a651183120a07947a4c @rrrene rrrene committed Oct 19, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit d8667ac

Please sign in to comment.