Clean code

This commit is contained in:
Đạt Nhân Trương
2022-08-06 18:16:52 +07:00
parent 61c3e75a52
commit bbdf236a10

View File

@@ -47,8 +47,7 @@ public abstract class AbstractScriptManager {
}
protected ScriptEngine getInvocableScriptEngine(String path) {
path = "scripts/" + path;
Path scriptFile = Paths.get(path);
Path scriptFile = Paths.get("scripts").resolve(path);
if (!Files.exists(scriptFile)) {
return null;
}