1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

Merge pull request #1246 from jalvarezsamayoa/patch-1

Remove deprecation warning for File.exists?
This commit is contained in:
Ryan Fitzgerald 2014-07-06 17:50:19 -07:00
commit 5101cd4e34

View file

@ -164,7 +164,7 @@ class Pry
end end
def valid_file?(file) def valid_file?(file)
(File.exists?(file) && !File.directory?(file)) || Pry.eval_path == file (File.exist?(file) && !File.directory?(file)) || Pry.eval_path == file
end end
def lines_for_file(file) def lines_for_file(file)