Skip to content

Commit 0264c37

Browse files
committed
Rubocop - Lint/DeprecatedClassMethods
1 parent 1923f64 commit 0264c37

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/appium_lib/driver.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def self.load_appium_txt(opts = {})
7979
toml = File.expand_path File.join parent_dir, 'appium.txt'
8080
Appium::Logger.info "appium.txt path: #{toml}" if verbose
8181

82-
toml_exists = File.exists? toml
82+
toml_exists = File.exist? toml
8383
Appium::Logger.info "Exists? #{toml_exists}" if verbose
8484

8585
raise "toml doesn't exist #{toml}" unless toml_exists
@@ -103,11 +103,11 @@ def self.load_appium_txt(opts = {})
103103
r = r.is_a?(Array) ? r : [r]
104104
# ensure files are absolute
105105
r.map! do |file|
106-
file = File.exists?(file) ? file :
106+
file = File.exist?(file) ? file :
107107
File.join(parent_dir, file)
108108
file = File.expand_path file
109109

110-
File.exists?(file) ? file : nil
110+
File.exist?(file) ? file : nil
111111
end
112112
r.compact! # remove nils
113113

0 commit comments

Comments
 (0)