From f7fe111430014dce9909c00540b87b02518cf7e3 Mon Sep 17 00:00:00 2001 From: Connor Mann <34930543+cnnrmnn@users.noreply.github.com> Date: Fri, 14 May 2021 11:53:49 -0400 Subject: [PATCH] Use `blank?` instead of checking for nil --- 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 eefa0df29f..c9fb1bef64 100644 --- a/Library/Homebrew/utils/curl.rb +++ b/Library/Homebrew/utils/curl.rb @@ -119,7 +119,7 @@ module Utils end def parse_headers(headers) - return {} unless headers + return {} if headers.blank? # Skip status code headers.split("\r\n")[1..].to_h do |h|