Skip to content

Commit

Permalink
rubocop: Use reverse_each instead of reverse.each
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Menges <[email protected]>
  • Loading branch information
Garfield96 committed Jun 14, 2023
1 parent 980987d commit 01161b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/fluent/plugin_helper/event_loop.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def start

def shutdown
@_event_loop_mutex.synchronize do
@_event_loop_attached_watchers.reverse.each do |w|
@_event_loop_attached_watchers.reverse_each do |w|
if w.attached?
begin
w.detach
Expand All @@ -116,7 +116,7 @@ def shutdown
def after_shutdown
timeout_at = Fluent::Clock.now + EVENT_LOOP_SHUTDOWN_TIMEOUT
@_event_loop_mutex.synchronize do
@_event_loop.watchers.reverse.each do |w|
@_event_loop.watchers.reverse_each do |w|
begin
w.detach
rescue => e
Expand Down

0 comments on commit 01161b2

Please sign in to comment.