audit: fix redundant version check
The == comparison was comparing the versions rather than directly comparing the strings, which lead to false positives. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
dfd35db4d1
commit
b8a62d98e1
@ -219,7 +219,7 @@ class FormulaAuditor
|
|||||||
else
|
else
|
||||||
version_text = s.version unless s.version.detected_from_url?
|
version_text = s.version unless s.version.detected_from_url?
|
||||||
version_url = Version.parse(s.url)
|
version_url = Version.parse(s.url)
|
||||||
if version_url == version_text
|
if version_url.to_s == version_text.to_s
|
||||||
problem "#{spec} version #{version_text} is redundant with version scanned from URL"
|
problem "#{spec} version #{version_text} is redundant with version scanned from URL"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user