From 73a206a316dcd081a226f341f87673c864c256fa Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 21 Dec 2012 17:12:00 -0600 Subject: doctor: avoid pointless creation of pathname object --- Library/Homebrew/cmd/doctor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index 934de6eaf..8d22b79ad 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -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 -- cgit v1.2.3