doctor: avoid pointless creation of pathname object

This commit is contained in:
Jack Nagel 2012-12-21 17:12:00 -06:00
parent a64e9e542f
commit 73a206a316

View File

@ -310,7 +310,7 @@ end
def check_access_usr_local
return unless HOMEBREW_PREFIX.to_s == '/usr/local'
unless Pathname('/usr/local').writable_real? then <<-EOS.undent
unless File.writable_real?("/usr/local") then <<-EOS.undent
The /usr/local directory is not writable.
Even if this directory was writable when you installed Homebrew, other
software may change permissions on this directory. Some versions of the