1
0

Day07 + optimizations

This commit is contained in:
2020-12-07 10:47:14 +01:00
parent b38cdcde07
commit f2280bc2b5
7 changed files with 669 additions and 17 deletions
@@ -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())
}
}