Day07 + optimizations
This commit is contained in:
@@ -15,7 +15,7 @@ class ResourceLoaderImpl : ResourceLoader {
|
||||
append(day.toString().padStart(2, '0'))
|
||||
append(".txt")
|
||||
}
|
||||
val url = javaClass.getResource(resourcePath)
|
||||
val url = javaClass.getResource(resourcePath) ?: error("Couldn't find resource")
|
||||
return Path.of(url.toURI())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user