Skip to content

Commit c218c8d

Browse files
committed
simplify boolean checks for _identifyy_http_proxy_auth
1 parent 97aeedb commit c218c8d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

py/selenium/webdriver/remote/remote_connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def _get_proxy_url(self):
131131
def _identify_http_proxy_auth(self):
132132
url = self._proxy_url
133133
url = url[url.find(":") + 3:]
134-
return True if "@" in url and len(url[:url.find('@')]) > 0 else False
134+
return "@" in url and len(url[:url.find('@')]) > 0
135135

136136
def _seperate_http_proxy_auth(self):
137137
url = self._proxy_url

0 commit comments

Comments
 (0)