lib/faster_path/optional/monkeypatches.rb in faster_path-0.3.7 vs lib/faster_path/optional/monkeypatches.rb in faster_path-0.3.8

- old
+ new

@@ -8,11 +8,11 @@ ::File.class_eval do def self.basename(pth, ext = '') pth = pth.to_path if pth.respond_to? :to_path raise TypeError unless pth.is_a?(String) && ext.is_a?(String) FasterPath.basename(pth, ext) - end if !!ENV['WITH_REGRESSION'] + end def self.extname(pth) pth = pth.to_path if pth.respond_to? :to_path raise TypeError unless pth.is_a? String FasterPath.extname(pth) @@ -20,10 +20,10 @@ def self.dirname(pth) pth = pth.to_path if pth.respond_to? :to_path raise TypeError unless pth.is_a? String FasterPath.dirname(pth) - end if !!ENV['WITH_REGRESSION'] + end end end # rubocop:disable Metrics/MethodLength def self._ruby_library_pathname!