Skip to content

fix: use optional chaining to fix lint errors#1485

Merged
vvo merged 1 commit intomainfrom
fix/lint-errors
Apr 16, 2026
Merged

fix: use optional chaining to fix lint errors#1485
vvo merged 1 commit intomainfrom
fix/lint-errors

Conversation

@vvo
Copy link
Copy Markdown
Member

@vvo vvo commented Apr 16, 2026

Summary

Fix 3 pre-existing lint/complexity/useOptionalChain errors that have been failing CI on every PR.

  • components/chat/artifact.tsx:165!doc || !doc.content!doc?.content
  • lib/ai/tools/request-suggestions.ts:34 — same pattern
  • lib/editor/config.ts:33!ref || !ref.current!ref?.current

🤖 Generated with Claude Code

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Apr 16, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ai-chatbot Ready Ready Preview, Comment Apr 16, 2026 3:47pm
chatbot Ready Ready Preview, Comment Apr 16, 2026 3:47pm

@vvo vvo marked this pull request as ready for review April 16, 2026 15:51
@vvo vvo merged commit d25b71c into main Apr 16, 2026
7 of 8 checks passed
@vvo vvo deleted the fix/lint-errors branch April 16, 2026 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant