Skip to content

Commit a56345a

Browse files
committed
Reusing existing method instead of an expression
1 parent 7e484c4 commit a56345a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java/client/src/org/openqa/selenium/firefox/FirefoxDriver.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,11 +202,11 @@ private static CommandExecutor toExecutor(FirefoxOptions options) {
202202

203203
if (options.isLegacy()) {
204204
builder = XpiDriverService.builder()
205-
.withBinary(options.getBinaryOrNull().orElseGet(FirefoxBinary::new))
205+
.withBinary(options.getBinary())
206206
.withProfile(options.getProfile());
207207
} else {
208208
builder = new GeckoDriverService.Builder()
209-
.usingFirefoxBinary(options.getBinaryOrNull().orElseGet(FirefoxBinary::new));
209+
.usingFirefoxBinary(options.getBinary());
210210
}
211211

212212
return new DriverCommandExecutor(builder.build());

0 commit comments

Comments
 (0)