Skip to content
Snippets Groups Projects
Commit 41a24878 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

audit: handle a nil revision map.

parent 201b45d2
No related branches found
No related tags found
No related merge requests found
......@@ -706,7 +706,7 @@ class FormulaAuditor
return if formula.revision.zero?
if formula.stable
revision_map = attributes_map[:revision][:stable]
stable_revisions = revision_map[formula.stable.version]
stable_revisions = revision_map[formula.stable.version] if revision_map
if !stable_revisions || stable_revisions.empty?
problem "'revision #{formula.revision}' should be removed"
end
......
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