Skip to content
Snippets Groups Projects
Unverified Commit 02a70496 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

style: better handle file arguments.

Fixes #5588.
parent 193af144
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
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