Skip to content

Commit cce1618

Browse files
Lints
1 parent d62a8a9 commit cce1618

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/controllers/admin/payments_controller.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ def index
4040
(participant.price.nil? &&
4141
activity.price && activity.price > 0)
4242
)
43-
# Somehow there were `nil` members in this list, not sure how we got there,
44-
# but the `select` makes the page useable.
45-
end.map(&:member).select{ |member| member != nil }
43+
# Somehow there were `nil` members in this list, not sure how we got there,
44+
# but the `select` makes the page useable.
45+
end.map(&:member).compact
4646
end.flatten.uniq
4747
@late_unpayable_activities = Activity.late_unpayable
4848
end

0 commit comments

Comments
 (0)