Skip to content

Commit 6fd04d6

Browse files
coderabbitai[bot]CodeRabbit
andauthored
fix: apply CodeRabbit auto-fixes
Fixed 1 file(s) based on 1 unresolved review comment. Co-authored-by: CodeRabbit <noreply@coderabbit.ai>
1 parent 77a61df commit 6fd04d6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/types/src/followup.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ export interface SuggestionItem {
2424

2525
export const getSuggestionMode = (mode: unknown): string | undefined => {
2626
if (typeof mode === "string" && mode.trim().length > 0) {
27-
return mode
27+
return mode.trim()
2828
}
2929

3030
if (mode && typeof mode === "object" && "mode_slug" in mode) {
3131
const modeSlug = (mode as { mode_slug?: unknown }).mode_slug
32-
return typeof modeSlug === "string" && modeSlug.trim().length > 0 ? modeSlug : undefined
32+
return typeof modeSlug === "string" && modeSlug.trim().length > 0 ? modeSlug.trim() : undefined
3333
}
3434

3535
return undefined

0 commit comments

Comments
 (0)