Skip to content
Snippets Groups Projects
Commit ef6b5512 authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

Merge pull request #1695 from MikeMcQuaid/audit-revision-map-nil

audit: handle a nil revision map.
parents 1d2390b2 41a24878
No related branches found
No related tags found
No related merge requests found
......@@ -711,7 +711,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