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