From 34e13fc52750f1f13df96809034d59ce01af827f Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Wed, 18 Jan 2017 22:20:44 +0000 Subject: keg: don't conditionally switch alias target This seems to be a remnant of Ruby 1.8. --- Library/Homebrew/keg.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'Library/Homebrew') diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb index 14eb0e3f3..4c869b048 100644 --- a/Library/Homebrew/keg.rb +++ b/Library/Homebrew/keg.rb @@ -192,11 +192,7 @@ class Keg path.parent end - if Pathname.method_defined?(:to_path) - alias to_path to_s - else - alias to_str to_s - end + alias to_path to_s def inspect "#<#{self.class.name}:#{path}>" -- cgit v1.2.3