Skip to content

Commit 36dd41e

Browse files
committed
fix lint
1 parent 0a888d7 commit 36dd41e

File tree

1 file changed

+2
-2
lines changed
  • packages/amazonq/test/unit/codewhispererChat/controllers/chat/chatRequest

1 file changed

+2
-2
lines changed

packages/amazonq/test/unit/codewhispererChat/controllers/chat/chatRequest/converter.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,14 +212,14 @@ describe('triggerPayloadToChatRequest', () => {
212212

213213
const result = triggerPayloadToChatRequest(payload)
214214

215-
const userInputLength = result.conversationState.currentMessage?.userInputMessage?.content?.length!
215+
const userInputLength = result.conversationState.currentMessage?.userInputMessage?.content?.length
216216
const promptContext =
217217
result.conversationState.currentMessage?.userInputMessage?.userInputMessageContext?.additionalContext?.find(
218218
(c) => c.name === 'prompt'
219219
)?.innerContext
220220
const currentFileLength =
221221
result.conversationState.currentMessage?.userInputMessage?.userInputMessageContext?.editorState?.document
222-
?.text?.length!
222+
?.text?.length
223223
const ruleContext =
224224
result.conversationState.currentMessage?.userInputMessage?.userInputMessageContext?.additionalContext?.find(
225225
(c) => c.name === 'rule'

0 commit comments

Comments
 (0)