Skip to content

Commit 3061c99

Browse files
Update src/main/java/io/appium/java_client/service/local/AppiumServiceBuilder.java
Co-authored-by: Valery Yatsynovich <[email protected]>
1 parent e013f70 commit 3061c99

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/main/java/io/appium/java_client/service/local/AppiumServiceBuilder.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,10 +226,7 @@ public AppiumServiceBuilder withArgument(ServerArgument argument, String value)
226226

227227
private static String sanitizeBasePath(String basePath) {
228228
basePath = checkNotNull(basePath).trim();
229-
if (basePath.isEmpty()) {
230-
throw new IllegalArgumentException(
231-
"Given base path is not valid - blank or empty values are not allowed for base path");
232-
}
229+
Preconditions.checkArgument(!basePath.isEmpty(), "Given base path is not valid - blank or empty values are not allowed for base path");
233230
return basePath.endsWith("/") ? basePath : basePath + "/";
234231
}
235232

0 commit comments

Comments
 (0)