Skip to content

Commit

Permalink
Return to nil from [] when nil value
Browse files Browse the repository at this point in the history
Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
  • Loading branch information
tikkss and kou authored Dec 19, 2023
1 parent aab9af9 commit b5e68f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/datasets/house-of-representative.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def open_data
end

def parse_array(column_value)
column_value.to_s.split("; ")
column_value&.split("; ")
end

def split_csv_column(row)
Expand Down

0 comments on commit b5e68f4

Please sign in to comment.