Skip to content

Commit

Permalink
fixup! fixup! Use ftype
Browse files Browse the repository at this point in the history
  • Loading branch information
robotdana committed Nov 22, 2023
1 parent f05f3e2 commit f17cc63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/path_list/candidate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ def shebang
# ftype follows symlinks on jruby on windows.
if ::RUBY_PLATFORM == 'java' && ::RbConfig::CONFIG['host_os'].match?(/mswin|mingw/)
refine ::File do
# :nodoc:
def ftype(path)
if ::File.symlink?(path)
'link'
Expand Down

0 comments on commit f17cc63

Please sign in to comment.