summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/hooks
diff options
context:
space:
mode:
authorNoritaka Kobayashi <[email protected]>2025-06-30 04:06:03 +0900
committerGitHub <[email protected]>2025-06-29 19:06:03 +0000
commit9ae2595bfde85d24ae0330d50f97ce0a8e2dc374 (patch)
tree7030ac61282d72181adfe404a07ce0bcad18a0a0 /packages/cli/src/ui/hooks
parent65a58c3b03aa79dfa67274beb694d530ec97f150 (diff)
refactor: remove unnecessary assertion (#2579)
Diffstat (limited to 'packages/cli/src/ui/hooks')
-rw-r--r--packages/cli/src/ui/hooks/slashCommandProcessor.ts5
1 files changed, 1 insertions, 4 deletions
diff --git a/packages/cli/src/ui/hooks/slashCommandProcessor.ts b/packages/cli/src/ui/hooks/slashCommandProcessor.ts
index 739a08ba..b7dcbdcb 100644
--- a/packages/cli/src/ui/hooks/slashCommandProcessor.ts
+++ b/packages/cli/src/ui/hooks/slashCommandProcessor.ts
@@ -127,10 +127,7 @@ export const useSlashCommandProcessor = (
};
} else {
historyItemContent = {
- type: message.type as
- | MessageType.INFO
- | MessageType.ERROR
- | MessageType.USER,
+ type: message.type,
text: message.content,
};
}