mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
fixup! avoid duplicating logic
This commit is contained in:
parent
16c81d7a55
commit
0cfc4ab1e8
@ -569,7 +569,7 @@ class Tap
|
||||
file = Pathname.new(file) unless file.is_a? Pathname
|
||||
file = file.expand_path(path)
|
||||
return false unless ruby_file?(file)
|
||||
return false if cask_pathname?(file)
|
||||
return false if cask_file?(file)
|
||||
|
||||
file.to_s.start_with?("#{formula_dir}/")
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user