mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-18 11:54:59 -04:00
resource location: speed up namespace validation even more
This commit is contained in:
parent
aed5185d98
commit
78de17c383
@ -21,7 +21,7 @@ object ResourceLocationUtil {
|
|||||||
if (!StaticConfiguration.VALIDATE_RESOURCE_LOCATION) {
|
if (!StaticConfiguration.VALIDATE_RESOURCE_LOCATION) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (namespace.isBlank()) {
|
if (namespace.isEmpty()) {
|
||||||
throw IllegalArgumentException("Namespace is blank!")
|
throw IllegalArgumentException("Namespace is blank!")
|
||||||
}
|
}
|
||||||
for (code in namespace.codePoints()) {
|
for (code in namespace.codePoints()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user