mirror of
https://github.com/rest-client/rest-client.git
synced 2022-11-09 13:49:40 -05:00
Don't use deprecated File.exists? method.
This commit is contained in:
parent
39c5b12273
commit
5315b4ed89
1 changed files with 2 additions and 2 deletions
|
@ -79,12 +79,12 @@ end
|
||||||
require 'irb'
|
require 'irb'
|
||||||
require 'irb/completion'
|
require 'irb/completion'
|
||||||
|
|
||||||
if File.exists? ".irbrc"
|
if File.exist? ".irbrc"
|
||||||
ENV['IRBRC'] = ".irbrc"
|
ENV['IRBRC'] = ".irbrc"
|
||||||
end
|
end
|
||||||
|
|
||||||
rcfile = File.expand_path("~/.restclientrc")
|
rcfile = File.expand_path("~/.restclientrc")
|
||||||
if File.exists?(rcfile)
|
if File.exist?(rcfile)
|
||||||
load(rcfile)
|
load(rcfile)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue