From b115219ef90400333bca797e4b0e07ecd5878270 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Mon, 15 Jul 2024 21:17:45 -0400 Subject: [PATCH] Fix code style. --- Library/Homebrew/cmd/fetch.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/cmd/fetch.rb b/Library/Homebrew/cmd/fetch.rb index f3b9262f0604da..c3a7be60259102 100644 --- a/Library/Homebrew/cmd/fetch.rb +++ b/Library/Homebrew/cmd/fetch.rb @@ -264,11 +264,11 @@ def run until remaining_downloads.empty? begin - finished_states = [:fulfilled, :rejected] - - finished_downloads, remaining_downloads = remaining_downloads.partition { |_,promise| finished_states.include?(promise.state) } + finished_downloads, remaining_downloads = remaining_downloads.partition do |_, promise| + finished_states.include?(promise.state) + end finished_downloads.each do |downloadable, promise| previous_pending_line_count -= 1