We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent afddea3 commit cd7c67eCopy full SHA for cd7c67e
lib/appium_lib/driver.rb
@@ -295,8 +295,7 @@ def initialize(opts = {})
295
296
# https://code.google.com/p/selenium/source/browse/spec-draft.md?repo=mobile
297
@appium_device = @caps[:platformName]
298
- @appium_device = @appium_device.is_a?(Symbol) ?
299
- @appium_device : @appium_device.downcase.strip.intern if @appium_device
+ @appium_device = @appium_device.is_a?(Symbol) ? @appium_device : @appium_device.downcase.strip.intern if @appium_device
300
raise "platformName must be set. Not found in options: #{opts}" unless @appium_device
301
raise 'platformName must be Android or iOS' unless [:android, :ios].include?(@appium_device)
302
0 commit comments