Clean code
This commit is contained in:
1 parent
61c3e75a52
commit
bbdf236a10
1 file changed
+1
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user