Skip to content
This repository was archived by the owner on Mar 12, 2019. It is now read-only.

Commit 6b714cc

Browse files
authored
Merge pull request #5594 from MikeMcQuaid/style-handle-files
style: better handle file arguments.
2 parents 193af14 + 02a7049 commit 6b714cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Library/Homebrew/style.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def check_style_impl(files, output_type, options = {})
6161
end
6262

6363
if files && !has_non_formula
64-
config = if (files.first/"spec").exist?
64+
config = if files.first && File.exist?("#{files.first}/spec")
6565
HOMEBREW_LIBRARY/".rubocop_rspec.yml"
6666
else
6767
HOMEBREW_LIBRARY/".rubocop_audit.yml"

0 commit comments

Comments
 (0)