Formula#file_modfiled?: remove unnecessary git dir check
It's already covered by `$?.exitstatus == 0` in below.
This commit is contained in:
parent
e779be1453
commit
1df6e5d331
@ -765,10 +765,8 @@ class Formula
|
||||
end
|
||||
|
||||
def file_modified?
|
||||
# New Homebrew installs may not be a git repo yet
|
||||
return false unless File.exist? "#{HOMEBREW_PREFIX}/.git"
|
||||
|
||||
git = which("git")
|
||||
|
||||
# git isn't installed by older Xcodes
|
||||
return false if git.nil?
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user