Skip to content
Snippets Groups Projects
Commit 460c4a32 authored by JCount's avatar JCount
Browse files

audit: deconstruct versioned_conflicts_whitelist using splat

parent 4e505624
No related branches found
No related tags found
No related merge requests found
......@@ -535,8 +535,7 @@ class FormulaAuditor
versioned_conflicts_whitelist = %w[node@ bash-completion@]
return unless formula.conflicts.any? && formula.versioned_formula?
versioned_conflicts_whitelist.each { |c|
return if formula.name.start_with? c }
return if formula.name.start_with?(*versioned_conflicts_whitelist)
problem <<-EOS
Versioned formulae should not use `conflicts_with`.
Use `keg_only :versioned_formula` instead.
......
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