ruby-changes:52065
From: nobu <ko1@a...>
Date: Fri, 10 Aug 2018 21:04:28 +0900 (JST)
Subject: [ruby-changes:52065] nobu:r64273 (trunk): Pathname: Simplified Pathname#mountpoint?
nobu 2018-08-10 21:04:24 +0900 (Fri, 10 Aug 2018) New Revision: 64273 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64273 Log: Pathname: Simplified Pathname#mountpoint? Removed unnecessary comparison in mountpoint? [Fix GH-1927] From: John Whitson <john.whitson@g...> Modified files: trunk/ext/pathname/lib/pathname.rb Index: ext/pathname/lib/pathname.rb =================================================================== --- ext/pathname/lib/pathname.rb (revision 64272) +++ ext/pathname/lib/pathname.rb (revision 64273) @@ -193,8 +193,7 @@ class Pathname https://github.com/ruby/ruby/blob/trunk/ext/pathname/lib/pathname.rb#L193 begin stat1 = self.lstat stat2 = self.parent.lstat - stat1.dev == stat2.dev && stat1.ino == stat2.ino || - stat1.dev != stat2.dev + stat1.dev != stat2.dev || stat1.ino == stat2.ino rescue Errno::ENOENT false end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/