Skip to content

Commit aaf54be

Browse files
Fix code format
1 parent 9e3a3e9 commit aaf54be

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

lib/appium_lib/driver.rb

+9-9
Original file line numberDiff line numberDiff line change
@@ -201,15 +201,15 @@ def capabilities
201201
# Converts environment variable APP_PATH to an absolute path.
202202
# @return [String] APP_PATH as an absolute path
203203
def absolute_app_path
204-
raise 'APP_PATH environment variable not set!' if @app_path.nil? || @app_path.empty?
205-
return @app_path if @app_path.match(/^http/) # public URL for Sauce
206-
if @app_path.match(/^\//) # absolute file path
207-
raise "App doesn't exist. #{@app_path}" unless File.exist? @app_path
208-
return @app_path
209-
end
210-
file = File.join(File.dirname(__FILE__), @app_path)
211-
raise "App doesn't exist #{file}" unless File.exist? file
212-
file
204+
raise 'APP_PATH environment variable not set!' if @app_path.nil? || @app_path.empty?
205+
return @app_path if @app_path.match(/^http/) # public URL for Sauce
206+
if @app_path.match(/^\//) # absolute file path
207+
raise "App doesn't exist. #{@app_path}" unless File.exist? @app_path
208+
return @app_path
209+
end
210+
file = File.join(File.dirname(__FILE__), @app_path)
211+
raise "App doesn't exist #{file}" unless File.exist? file
212+
file
213213
end
214214

215215
# Get the server url for sauce or local based on env vars.

0 commit comments

Comments
 (0)