Skip to content
Snippets Groups Projects
Commit ea35d749 authored by Adam Vandenberg's avatar Adam Vandenberg
Browse files

be more ruby-like

parent 00b7e07f
No related branches found
No related tags found
No related merge requests found
......@@ -158,11 +158,12 @@ end
def audit_formula_version f, text
# Version as defined in the DSL (or nil)
version_text = f.class.send('version').to_s
# Version as determined from the URL
version_url = Pathname.new(f.url).version
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
return []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment