Skip to content

Commit cd7c67e

Browse files
committed
Rubocop - Style/MultilineTernaryOperator
1 parent afddea3 commit cd7c67e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/appium_lib/driver.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,7 @@ def initialize(opts = {})
295295

296296
# https://code.google.com/p/selenium/source/browse/spec-draft.md?repo=mobile
297297
@appium_device = @caps[:platformName]
298-
@appium_device = @appium_device.is_a?(Symbol) ?
299-
@appium_device : @appium_device.downcase.strip.intern if @appium_device
298+
@appium_device = @appium_device.is_a?(Symbol) ? @appium_device : @appium_device.downcase.strip.intern if @appium_device
300299
raise "platformName must be set. Not found in options: #{opts}" unless @appium_device
301300
raise 'platformName must be Android or iOS' unless [:android, :ios].include?(@appium_device)
302301

0 commit comments

Comments
 (0)