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
|
||||
public static Optional<String> getConfigResource(Path root, String resource) {
|
||||
if (Files.exists(root)) {
|
||||
return Optional.of(Files.readString(root.resolve(resource)));
|
||||
var r = root.resolve(resource);
|
||||
if (Files.exists(r)) {
|
||||
return Optional.of(Files.readString(r));
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user