diff --git a/lib/path_list/candidate.rb b/lib/path_list/candidate.rb index 6f14374..01bca68 100644 --- a/lib/path_list/candidate.rb +++ b/lib/path_list/candidate.rb @@ -55,9 +55,8 @@ def children end # :nocov: - if ::RUBY_PLATFORM == 'jruby' && ::RbConfig::CONFIG['host_os'].match?(/mswin|mingw/) + if ::RUBY_PLATFORM == 'java' && ::RbConfig::CONFIG['host_os'].match?(/mswin|mingw/) # @return [Boolean] whether this path is a directory (false for symlinks to directories) - puts 'WE ARE WINDOWS JRUBY' def directory? return @directory unless @directory.nil?