audit: distinguish between nil and empty versions
This commit is contained in:
parent
6f7dcb08e8
commit
7ef03c35f7
@ -603,8 +603,10 @@ class ResourceAuditor
|
|||||||
end
|
end
|
||||||
|
|
||||||
def audit_version
|
def audit_version
|
||||||
if version.to_s.empty?
|
if version.nil?
|
||||||
problem "invalid or missing version"
|
problem "missing version"
|
||||||
|
elsif version.to_s.empty?
|
||||||
|
problem "version is set to an empty string"
|
||||||
elsif not version.detected_from_url?
|
elsif not version.detected_from_url?
|
||||||
version_text = version
|
version_text = version
|
||||||
version_url = Version.detect(url, specs)
|
version_url = Version.detect(url, specs)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user