lib/appium_lib/driver.rb in appium_lib-15.2.1 vs lib/appium_lib/driver.rb in appium_lib-15.2.2
- old
+ new
@@ -267,12 +267,12 @@
def set_app_path(opts)
return unless @core.caps
# return the path exists on the local
app_path = Driver.get_cap(@core.caps, 'app')
- return if !app_path.nil? && File.exist?(app_path)
+ return if app_path.nil?
+ return if File.exist?(app_path)
- # The app file is not exact path
@core.caps['app'] = self.class.absolute_app_path opts
end
# @private
def set_sauce_related_values(appium_lib_opts)