Clean code
This commit is contained in:
@@ -47,8 +47,7 @@ public abstract class AbstractScriptManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected ScriptEngine getInvocableScriptEngine(String path) {
|
protected ScriptEngine getInvocableScriptEngine(String path) {
|
||||||
path = "scripts/" + path;
|
Path scriptFile = Paths.get("scripts").resolve(path);
|
||||||
Path scriptFile = Paths.get(path);
|
|
||||||
if (!Files.exists(scriptFile)) {
|
if (!Files.exists(scriptFile)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user