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
907ece2810
commit
2e150358ad
@ -26,7 +26,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