Skip to content

Commit beee8c9

Browse files
committed
refactor *::ViewComponent::Events#subscriptions: use flat_map
1 parent d31ec60 commit beee8c9

File tree

1 file changed

+1
-1
lines changed
  • lib/datadog/tracing/contrib/view_component

1 file changed

+1
-1
lines changed

lib/datadog/tracing/contrib/view_component/events.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def all
1919
end
2020

2121
def subscriptions
22-
all.collect(&:subscriptions).collect(&:to_a).flatten
22+
all.collect(&:subscriptions).flat_map(&:to_a)
2323
end
2424

2525
def subscribe!

0 commit comments

Comments
 (0)