fix: Helper#getConfigResource is not implemented correctly.
This commit is contained in:
1 file changed
+3
-2
@@ -95,8 +95,9 @@ public class Helper {
|
|||||||
|
|
||||||
@SneakyThrows
|
@SneakyThrows
|
||||||
public static Optional<String> getConfigResource(Path root, String resource) {
|
public static Optional<String> getConfigResource(Path root, String resource) {
|
||||||
if (Files.exists(root)) {
|
var r = root.resolve(resource);
|
||||||
return Optional.of(Files.readString(root.resolve(resource)));
|
if (Files.exists(r)) {
|
||||||
|
return Optional.of(Files.readString(r));
|
||||||
}
|
}
|
||||||
return Optional.empty();
|
return Optional.empty();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user