fix: Helper#getConfigResource is not implemented correctly.

This commit is contained in:
iceBear67 committed 2025-03-28 11:03:21 +08:00
1 parent 885920f38e
commit 5b16513647
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();
}