fix: add missing reasonSuffix declaration in stopAuto
The reason parameter was added to stopAuto() but the reasonSuffix variable derived from it was never declared, causing TS2304 errors. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
04721cb20e
commit
0dd0a1a4d2
1 changed files with 1 additions and 0 deletions
|
|
@ -567,6 +567,7 @@ function startDispatchGapWatchdog(ctx: ExtensionContext, pi: ExtensionAPI): void
|
|||
|
||||
export async function stopAuto(ctx?: ExtensionContext, pi?: ExtensionAPI, reason?: string): Promise<void> {
|
||||
if (!active && !paused) return;
|
||||
const reasonSuffix = reason ? ` — ${reason}` : "";
|
||||
clearUnitTimeout();
|
||||
if (lockBase()) clearLock(lockBase());
|
||||
clearSkillSnapshot();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue