mirror of
https://github.com/twitter/the-algorithm.git
synced 2025-01-03 08:01:53 +01:00
Update NativeUtils.java
This commit is contained in:
parent
66c5597dce
commit
579027bf19
@ -24,7 +24,7 @@ public final class NativeUtils {
|
||||
}
|
||||
|
||||
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) {
|
||||
throw new IllegalArgumentException("The filename has to be at least 3 characters long.");
|
||||
|
Loading…
Reference in New Issue
Block a user