Skip to content

Commit 582502d

Browse files
committed
fix(doctor): satisfy configured plugin mapper lint
1 parent 3aa719b commit 582502d

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/commands/doctor/shared/missing-configured-plugin-install.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1707,6 +1707,7 @@ export function configuredPluginInstallIssueToHealthFinding(
17071707
fixHint: "Rerun `openclaw doctor --fix` after the package update completes.",
17081708
};
17091709
}
1710+
return assertNeverConfiguredPluginInstallIssue(issue);
17101711
}
17111712

17121713
export function configuredPluginInstallIssueToRepairEffect(
@@ -1750,6 +1751,13 @@ export function configuredPluginInstallIssueToRepairEffect(
17501751
dryRunSafe: true,
17511752
};
17521753
}
1754+
return assertNeverConfiguredPluginInstallIssue(issue);
1755+
}
1756+
1757+
function assertNeverConfiguredPluginInstallIssue(issue: never): never {
1758+
throw new Error(
1759+
`Unhandled configured plugin install issue kind: ${String((issue as { kind?: unknown }).kind)}`,
1760+
);
17531761
}
17541762

17551763
export type RepairMissingPluginInstallsResult = {

0 commit comments

Comments
 (0)