mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-26 19:09:48 -05:00
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:
1 parent
cb0f450235
commit
f6e3241aa0
1 file changed
+1
-1
@@ -219,7 +219,7 @@ class FormulaAuditor
|
||||
else
|
||||
version_text = s.version unless s.version.detected_from_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"
|
||||
end
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user