formula_auditor: Appease RuboCop with another &.
This commit is contained in:
parent
21f38ca3af
commit
10b1af8b29
@ -470,7 +470,7 @@ module Homebrew
|
||||
return unless @core_tap
|
||||
return unless formula.keg_only?
|
||||
|
||||
keg_only_message = text.to_s.match(/keg_only\s+["'](.*)["']/)&.captures.first
|
||||
keg_only_message = text.to_s.match(/keg_only\s+["'](.*)["']/)&.captures&.first
|
||||
return unless keg_only_message&.include?("HOMEBREW_PREFIX")
|
||||
|
||||
problem "`keg_only` reason should not include `HOMEBREW_PREFIX` as it creates confusing `brew info` output."
|
||||
|
Loading…
x
Reference in New Issue
Block a user