Skip to content

Commit

Permalink
Appease rubocop.
Browse files Browse the repository at this point in the history
  • Loading branch information
svogt0511 committed Dec 12, 2023
1 parent 76077e6 commit b387dbd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/serializers/activity_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ class ActivitySerializer
if pub_obj
changes["publisher"] = pub_obj
else
changes["publisher"] =
changes["publisher"] =
action == "update" ? [
pub[0] ? { "name": pub[0] } : nil,
pub[0] ? { "name": pub[0] } : nil,
pub[1] ? { "name": pub[1] } : nil
] : { "name": pub }
end
else
if pub_obj
changes["publisher"] =
changes["publisher"] =
action == "update" ? [
pub_obj[0] ? pub_obj[0]["name"] : nil,
pub_obj[1] ? pub_obj[1]["name"] : nil
Expand Down

0 comments on commit b387dbd

Please sign in to comment.