Skip to content

Commit f27054f

Browse files
committed
use new variable
1 parent b727e1f commit f27054f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

appium/webdriver/webdriver.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -188,11 +188,11 @@ def _get_remote_connection_and_client_config(
188188
return (command_executor, None)
189189

190190
# command_executor is str
191-
if client_config is None:
192-
# Do not keep None to avoid warnings in Selenium
193-
# which can prevent with ClientConfig instance usage.
194-
client_config = AppiumClientConfig(remote_server_addr=command_executor)
195-
return (AppiumConnection(client_config=client_config), client_config)
191+
192+
# Do not keep None to avoid warnings in Selenium
193+
# which can prevent with ClientConfig instance usage.
194+
new_client_config = AppiumClientConfig(remote_server_addr=command_executor) if client_config is None else client_config
195+
return (AppiumConnection(client_config=new_client_config), new_client_config)
196196

197197

198198
class WebDriver(

0 commit comments

Comments
 (0)