Skip to content
This repository
Browse code

Merge pull request #1246 from jalvarezsamayoa/patch-1

Remove deprecation warning for File.exists?
  • Loading branch information...
commit 5101cd4e34d905e10a218b01fb355668bf2fec21 2 parents 7bf2549 + 8aa9b2f
Ryan Fitzgerald rf- authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  lib/pry/method/weird_method_locator.rb
2  lib/pry/method/weird_method_locator.rb
@@ -164,7 +164,7 @@ def index_to_line_number(index)
164 164 end
165 165
166 166 def valid_file?(file)
167   - (File.exists?(file) && !File.directory?(file)) || Pry.eval_path == file
  167 + (File.exist?(file) && !File.directory?(file)) || Pry.eval_path == file
168 168 end
169 169
170 170 def lines_for_file(file)

0 comments on commit 5101cd4

Please sign in to comment.
Something went wrong with that request. Please try again.