Merge pull request #8860 from dtrodrigues/remove-legit-version-exception

audit: remove legit version exception
This commit is contained in:
Dustin Rodrigues 2020-10-05 19:23:28 -04:00 committed by GitHub
commit 95ba86d465
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1024,7 +1024,7 @@ module Homebrew
elsif !version.detected_from_url? elsif !version.detected_from_url?
version_text = version version_text = version
version_url = Version.detect(url, **specs) version_url = Version.detect(url, **specs)
if version_url.to_s == version_text.to_s && version.instance_of?(Version) && @name != "legit" if version_url.to_s == version_text.to_s && version.instance_of?(Version)
problem "version #{version_text} is redundant with version scanned from URL" problem "version #{version_text} is redundant with version scanned from URL"
end end
end end