Merge pull request #5594 from MikeMcQuaid/style-handle-files
style: better handle file arguments.
This commit is contained in:
commit
6b714cc9c2
@ -61,7 +61,7 @@ module Homebrew
|
||||
end
|
||||
|
||||
if files && !has_non_formula
|
||||
config = if (files.first/"spec").exist?
|
||||
config = if files.first && File.exist?("#{files.first}/spec")
|
||||
HOMEBREW_LIBRARY/".rubocop_rspec.yml"
|
||||
else
|
||||
HOMEBREW_LIBRARY/".rubocop_audit.yml"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user