diff --git a/Library/Homebrew/resource_auditor.rb b/Library/Homebrew/resource_auditor.rb index 3ca248c3ac..f149e19f48 100644 --- a/Library/Homebrew/resource_auditor.rb +++ b/Library/Homebrew/resource_auditor.rb @@ -85,7 +85,9 @@ module Homebrew def audit_checksum return if spec_name == :head - return if DownloadStrategyDetector.detect(url, using) > CurlDownloadStrategy + # rubocop:disable Style/InvertibleUnlessCondition (non-invertible) + return unless DownloadStrategyDetector.detect(url, using) <= CurlDownloadStrategy + # rubocop:enable Style/InvertibleUnlessCondition problem "Checksum is missing" if checksum.blank? end