Skip to content

Commit 5b5e47b

Browse files
committed
fix: fix rubocop
1 parent 2f9466e commit 5b5e47b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/appium_lib_core/common/base/driver.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def create_bridge(**opts)
8181

8282
raise ::Appium::Core::Error::ArgumentError, "Unable to create a driver with parameters: #{opts}" unless opts.empty?
8383

84-
@has_bidi = !!(capabilities && capabilities['webSocketUrl'])
84+
@has_bidi = capabilities && capabilities['webSocketUrl'] ? true : false
8585
bridge_clzz = @has_bidi ? ::Appium::Core::Base::BiDiBridge : ::Appium::Core::Base::Bridge
8686
bridge = bridge_clzz.new(**bridge_opts)
8787

0 commit comments

Comments
 (0)