From 99504c44746d7b9b6f55164de389581b3d0ebe97 Mon Sep 17 00:00:00 2001 From: Harry Marr Date: Wed, 4 May 2022 11:13:48 -0400 Subject: [PATCH] Use `blank?` rather than `nil?` Co-authored-by: Mike McQuaid --- Library/Homebrew/download_strategy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 181be0a3dd..37607e0ed9 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -882,7 +882,7 @@ class GitDownloadStrategy < VCSDownloadStrategy end def partial_clone_sparse_checkout? - return false if @only_paths.nil? + return false if @only_paths.blank? # There is some support for partial clones prior to 2.20, but we avoid using it # due to performance issues