fix(install): remove duplicate function definition

- Remove empty duplicate runOpenclaw function that caused syntax error
This commit is contained in:
zhi
2026-03-03 17:02:08 +00:00
parent 84b0363d59
commit 91cd402627

View File

@@ -56,8 +56,6 @@ const PATH_PROVIDERS = "models.providers";
const PATH_PROVIDER_ENTRY = `models.providers.${NO_REPLY_PROVIDER_ID}`; const PATH_PROVIDER_ENTRY = `models.providers.${NO_REPLY_PROVIDER_ID}`;
const PATH_PLUGINS_ALLOW = "plugins.allow"; const PATH_PLUGINS_ALLOW = "plugins.allow";
function runOpenclaw(args, { allowFail = false } = {}) {
function runOpenclaw(args, { allowFail = false } = {}) { function runOpenclaw(args, { allowFail = false } = {}) {
try { try {
return execFileSync("openclaw", args, { encoding: "utf8" }).trim(); return execFileSync("openclaw", args, { encoding: "utf8" }).trim();