From 9ae2595bfde85d24ae0330d50f97ce0a8e2dc374 Mon Sep 17 00:00:00 2001 From: Noritaka Kobayashi Date: Mon, 30 Jun 2025 04:06:03 +0900 Subject: refactor: remove unnecessary assertion (#2579) --- packages/cli/src/ui/hooks/slashCommandProcessor.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'packages/cli/src/ui/hooks/slashCommandProcessor.ts') 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, }; } -- cgit v1.2.3