be more ruby-like
This commit is contained in:
parent
00b7e07f45
commit
ea35d749af
@ -158,11 +158,12 @@ end
|
|||||||
def audit_formula_version f, text
|
def audit_formula_version f, text
|
||||||
# Version as defined in the DSL (or nil)
|
# Version as defined in the DSL (or nil)
|
||||||
version_text = f.class.send('version').to_s
|
version_text = f.class.send('version').to_s
|
||||||
|
|
||||||
# Version as determined from the URL
|
# Version as determined from the URL
|
||||||
version_url = Pathname.new(f.url).version
|
version_url = Pathname.new(f.url).version
|
||||||
|
|
||||||
if version_url == version_text
|
if version_url == version_text
|
||||||
return [" * version "+version_text+" is redundant with version scanned from url"]
|
return [" * version #{version_text} is redundant with version scanned from url"]
|
||||||
end
|
end
|
||||||
|
|
||||||
return []
|
return []
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user