Skip to content

Commit

Permalink
Rubocop fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KludgeKML committed Jan 15, 2024
1 parent 8642ff4 commit cc829e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion email_alert_service/models/change_history.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def initialize(history:)
end

def latest_change_note
change_note = history&.sort_by { |note| note["public_timestamp"] }&.last
change_note = history&.max_by { |note| note["public_timestamp"] }
change_note["note"] if change_note
end
end

0 comments on commit cc829e1

Please sign in to comment.