Skip to content

Commit 2e8f394

Browse files
evaldassEvaldas
andauthored
fix(openclaw-plugin): remove duplicate const sessionId declaration in ov_archive_expand (#1059)
Line 722 re-declared `const sessionId = ctx.sessionId ?? ""` which was already declared on line 711 within the same execute() scope. This caused a ParseError at plugin load time: Identifier 'sessionId' has already been declared. /home/.../.openclaw/extensions/openviking/index.ts:722:14 Removed the duplicate declaration so the existing sessionId from line 711 is reused. Co-authored-by: Evaldas <evaldas@openclaw.ai>
1 parent 24a968a commit 2e8f394

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

examples/openclaw-plugin/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,6 @@ const contextEnginePlugin = {
719719
};
720720
}
721721

722-
const sessionId = ctx.sessionId ?? "";
723722
const sessionKey = ctx.sessionKey ?? "";
724723
if (!sessionId && !sessionKey) {
725724
return {

0 commit comments

Comments
 (0)