Skip to content

Commit

Permalink
Remove unneeded else in conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
AutomatedTester committed Jun 3, 2014
1 parent 96c3228 commit e73b9cc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions py/selenium/webdriver/chrome/webdriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,9 @@ def __init__(self, executable_path="chromedriver", port=0,
- chrome_options: this takes an instance of ChromeOptions
"""
if chrome_options is None:
# desired_capabilities stays as passed in
if desired_capabilities is None:
desired_capabilities = Options().to_capabilities()
else:
# desired_capabilities stays as passed
pass
else:
if desired_capabilities is None:
desired_capabilities = options.to_capabilities()
Expand All @@ -67,7 +65,7 @@ def __init__(self, executable_path="chromedriver", port=0,
keep_alive=True)
except:
self.quit()
raise
raise
self._is_remote = False

def quit(self):
Expand Down

0 comments on commit e73b9cc

Please sign in to comment.