fix(gui): drop the impossible slots-undefined guard in the ui-question plugin

ClientContext types ctx.slots as always present (inject-declared service);
the unnecessary-condition lint rule rejects the dead guard and its
fail-loud test premise. Load-order failure still surfaces loud through
the undeclared-slot registration path, covered by the remaining case.
This commit is contained in:
imccyu
2026-07-23 19:45:02 +08:00
parent 34f0536cfe
commit afd7eb0dcf
2 changed files with 0 additions and 5 deletions
@@ -29,7 +29,6 @@ function selectQuestion({ interactions }: ComposerChainProps): QuestionWait | nu
*/
export function apply(ctx: ClientContext): void {
const slots = ctx.slots
if (slots === undefined) throw new Error('ui-question: slots service unavailable')
ctx.effect(
() => slots.register({ name: 'conversation.composer', select: selectQuestion }, QuestionComposer),
'ui-question: composer chain registration',