Disable false positive
This commit is contained in:
parent
08af78a2a5
commit
89eb891891
@ -85,7 +85,9 @@ module Homebrew
|
|||||||
|
|
||||||
def audit_checksum
|
def audit_checksum
|
||||||
return if spec_name == :head
|
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?
|
problem "Checksum is missing" if checksum.blank?
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user