Skip to content

Commit

Permalink
don't return manually from map
Browse files Browse the repository at this point in the history
  • Loading branch information
jtomchak committed Dec 22, 2023
1 parent 370cdcd commit 68cfce5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/lib/mammoth/status_origin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def bulk_add_channel(statuses, user, channel)
reasons = statuses.map do |s|
list_key = key(user[:acct], s[:id])
reason = channel_reason(s, channel)
return {key: list_key, id: s[:id], reason: reason}
{key: list_key, id: s[:id], reason: reason}
end
Rails.logger.warn "BULK CHANNEL REASONS: #{reasons}"
bulk_reasons(reasons)
Expand All @@ -58,7 +58,7 @@ def bulk_add_mammoth_pick(statuses, user)
reasons = statuses.map do |s|
list_key = key(user[:acct], s[:id])
reason = mammoth_pick_reason(s)
return {key: list_key, id: s[:id], reason: reason}
{key: list_key, id: s[:id], reason: reason}
end
Rails.logger.warn "BULK MAMMOTH REASONS: #{reasons}"
bulk_reasons(reasons)
Expand Down

0 comments on commit 68cfce5

Please sign in to comment.