Update NativeUtils.java

This commit is contained in:
Mohanned Anwar 2023-04-04 05:15:45 +03:00 committed by GitHub
parent 66c5597dce
commit 579027bf19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ public final class NativeUtils {
} }
String[] parts = path.split("/"); String[] parts = path.split("/");
String filename = parts.length > 1 ? parts[parts.length - 1] : null; String filename = (parts.length > 1) ? parts[parts.length - 1] : null;
if (filename == null || filename.length() < MIN_PREFIX_LENGTH) { if (filename == null || filename.length() < MIN_PREFIX_LENGTH) {
throw new IllegalArgumentException("The filename has to be at least 3 characters long."); throw new IllegalArgumentException("The filename has to be at least 3 characters long.");