lib/appium_lib/driver.rb in appium_lib-11.0.0 vs lib/appium_lib/driver.rb in appium_lib-11.1.0

- old
+ new

@@ -274,11 +274,10 @@ public # Returns a hash of the driver attributes def driver_attributes - # rubocop:disable Layout/AlignHash { caps: @core.caps, automation_name: @core.automation_name, custom_url: @core.custom_url, export_session: @core.export_session, @@ -292,11 +291,10 @@ debug: @appium_debug, listener: @listener, wait_timeout: @core.wait_timeout, wait_interval: @core.wait_interval } - # rubocop:enable Layout/AlignHash end def device_is_android? @core.device == :android end @@ -423,17 +421,15 @@ # Sauce storage API. http://saucelabs.com/docs/rest#storage return app_path if app_path.start_with? 'sauce-storage:' return app_path if app_path =~ URI::DEFAULT_PARSER.make_regexp # public URL for Sauce absolute_app_path = File.expand_path app_path - app_path = if File.exist? absolute_app_path - absolute_app_path - else - ::Appium::Logger.info("Use #{app_path}") - app_path - end - - app_path + if File.exist? absolute_app_path + absolute_app_path + else + ::Appium::Logger.info("Use #{app_path}") + app_path + end end # Get the server url # @return [String] the server url def server_url