Skip to content

Commit

Permalink
Use each instead of each_with_index
Browse files Browse the repository at this point in the history
It is trivial, but apparently index is not used at all in this method.

Signed-off-by: Kentaro Hayashi <[email protected]>
  • Loading branch information
kenhys committed Sep 20, 2024
1 parent 7a9860b commit d4d9e22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fluent/event_router.rb
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def reset_optimization

def find(tag)
pipeline = nil
@match_rules.each_with_index { |rule, i|
@match_rules.each do |rule|
if rule.match?(tag)
if rule.collector.is_a?(Plugin::Filter)
pipeline ||= Pipeline.new
Expand Down

0 comments on commit d4d9e22

Please sign in to comment.