Skip to content

Commit

Permalink
Remove useless branch from WebDriverBackedSeleniumServlet
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Oct 4, 2016
1 parent 8b08e39 commit 5cf66fe
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,8 @@ private void startNewSession(
sessionId = new SessionId(split.get(1));
}

if (sessionId != null) {
Session session = sessionsSupplier.get().get(sessionId);
// Let's assume the person knew what they're doing... Skip to the end
} else {
// Fine. Let's see if the user chose "webdriver" or something specific.
if (sessionId == null) {
// Let's see if the user chose "webdriver" or something specific.
DesiredCapabilities caps;
switch (browserString) {
case "*webdriver":
Expand Down

0 comments on commit 5cf66fe

Please sign in to comment.