From 8f52604b478fee5243080116b8e62f0c1f5cb9a0 Mon Sep 17 00:00:00 2001 From: Masataka Pocke Kuwabara Date: Mon, 9 Dec 2019 00:48:13 +0900 Subject: Remove unnecessary double bangs from Pathname#root? --- ext/pathname/lib/pathname.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/pathname/lib/pathname.rb b/ext/pathname/lib/pathname.rb index 2fd0642e14..dc4a7c0220 100644 --- a/ext/pathname/lib/pathname.rb +++ b/ext/pathname/lib/pathname.rb @@ -207,7 +207,7 @@ class Pathname # pathnames which points to roots such as /usr/... # def root? - !!(chop_basename(@path) == nil && /#{SEPARATOR_PAT}/o.match?(@path)) + chop_basename(@path) == nil && /#{SEPARATOR_PAT}/o.match?(@path) end # Predicate method for testing whether a path is absolute. -- cgit v1.2.3