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:
commit
5101cd4e34
1 changed files with 1 additions and 1 deletions
|
@ -164,7 +164,7 @@ class Pry
|
|||
end
|
||||
|
||||
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
|
||||
|
||||
def lines_for_file(file)
|
||||
|
|
Loading…
Add table
Reference in a new issue