Skip to content

Commit b075e12

Browse files
committed
WIP - fix java linter
1 parent 98f2080 commit b075e12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java/src/org/openqa/selenium/remote/service/DriverService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,13 +145,13 @@ protected static File findExecutable(
145145
}
146146
}
147147

148-
Require.state("The path to the driver executable", exePath).nonNull(
148+
String validPath = Require.state("The path to the driver executable", exePath).nonNull(
149149
"The path to the driver executable must be set by the %s system property;"
150150
+ " for more information, see %s. "
151151
+ "The latest version can be downloaded from %s",
152152
exeProperty, exeDocs, exeDownload);
153153

154-
File exe = new File(exePath);
154+
File exe = new File(validPath);
155155
checkExecutable(exe);
156156
return exe;
157157
}

0 commit comments

Comments
 (0)