diff --git a/src/main/kotlin/org/domaindrivenarchitecture/provs/syspec/infrastructure/SyspecConfigRepo.kt b/src/main/kotlin/org/domaindrivenarchitecture/provs/syspec/infrastructure/SyspecConfigRepo.kt index 90e152e..854716f 100644 --- a/src/main/kotlin/org/domaindrivenarchitecture/provs/syspec/infrastructure/SyspecConfigRepo.kt +++ b/src/main/kotlin/org/domaindrivenarchitecture/provs/syspec/infrastructure/SyspecConfigRepo.kt @@ -18,14 +18,14 @@ internal fun findSpecConfigFromFile(file: ConfigFileName? = null): Result() } internal fun findSpecConfigFromResource(resourcePath: String): Result = runCatching { val resource = Thread.currentThread().contextClassLoader.getResource(resourcePath) requireNotNull(resource) { "Resource $resourcePath not found" } - return resource.readText().yamlToType() + resource.readText().yamlToType() }