Disable false positive

This commit is contained in:
Douglas Eichelberger 2023-04-18 15:07:38 -07:00
parent 08af78a2a5
commit 89eb891891

View File

@ -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