Skip to content

Commit

Permalink
Use File.exist? instead of File.exists?
Browse files Browse the repository at this point in the history
In ruby 3.0 using File.exists? emits a deprecation warning. It proposes to use File.exist? instead.
  • Loading branch information
fschwahn authored Oct 26, 2021
1 parent 93fe240 commit f9a6480
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/voight_kampff/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def lookup_paths
end

def preferred_path
lookup_paths.find { |path| File.exists? path }
lookup_paths.find { |path| File.exist? path }
end

def matching_crawler
Expand Down

0 comments on commit f9a6480

Please sign in to comment.