Skip to content

Commit

Permalink
Removed FIXME comment
Browse files Browse the repository at this point in the history
  • Loading branch information
martent committed Sep 2, 2019
1 parent 5002e7f commit 4d40a46
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/models/person.rb
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,6 @@ def asylum
dates = dates.delete_if { |_k, v| v.blank? }

# Get the event with the latest date
# FIXME: sort and max yields different results when there are multiple latest dates that are the same
# dates.max_by { |_k, v| v }
dates.sort_by { |_k, v| v }.last
end

Expand Down

0 comments on commit 4d40a46

Please sign in to comment.