Skip to content

Commit

Permalink
Update csv.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldrapper committed Feb 18, 2024
1 parent 24d53e0 commit 3e9c4f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/phlex/csv.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ def filename
def column(header = nil, value)
if @_first
@_headers << header
else
raise unless header == @_headers[@_current_column_index]
elsif header != @_headers[@_current_column_index]
raise "Inconsistent header."
end

@_current_row << value
Expand Down

0 comments on commit 3e9c4f7

Please sign in to comment.