Revoke ability to multiple loading the same module

This commit is contained in:
2020-03-13 12:38:15 +01:00
parent 9b79d6ef7d
commit 1c7b56159a
3 changed files with 15 additions and 14 deletions

View File

@@ -14,7 +14,7 @@ object DefaultModuleRegistry : ModuleRegistry {
}
}
override fun requestModulesForPath(path: String): ModuleProvider {
override fun requestModuleProviderForPath(path: String): ModuleProvider {
return modules[path] ?: throw RuntimeException("Module $path not found")
}