From c6cddacc5ef10703db87b277158548f3959085f1 Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Mon, 4 Oct 2021 18:17:00 +0100 Subject: [PATCH] utils/curl: fix false flag handling --- Library/Homebrew/utils/curl.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/utils/curl.rb b/Library/Homebrew/utils/curl.rb index 37a4f71e4f..1bfb499727 100644 --- a/Library/Homebrew/utils/curl.rb +++ b/Library/Homebrew/utils/curl.rb @@ -305,7 +305,7 @@ module Utils file = Tempfile.new.tap(&:close) specs = specs.flat_map do |option, argument| - next if argument == false # No flag. + next [] if argument == false # No flag. args = ["--#{option.to_s.tr("_", "-")}"] args << argument unless argument == true # It's a flag.