Repository navigation
chore: remove useless search and Markdown expressions - #2437
Conversation
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Remove no-op expressions src/components/GlobalSearchDialog.tsx, src/components/Markdown.tsx |
Removed standalone expressions that did not affect search match counting or Markdown content rendering. |
Priority:
Estimated code review effort: 1 (Trivial) | ~2 minutes
Change: Refactor
Merge Risk: 
Minimal · up to e504f
-
No merge-blocking issue is identified; the cleanup appears ready for normal checks.
Pre-merge checks: 
6
-
Full details: Title check
-
Explanation
The title "chore: remove useless search and Markdown expressions" matches the diff, which removes two no-op expression statements (
collected;in GlobalSearchDialog.tsx andnonTableContent;in Markdown.tsx). It is concise and scoped. It names the search and Markdown areas but does not name the specific rule or the file-level detail, which is acceptable for this change.
Full details: Risk Surface Disclosed
-
Explanation
PASS — The PR changes only two standalone no-op expressions in
GlobalSearchDialog.tsxandMarkdown.tsx. The diff does not change authentication, provider routing, permissions, outbound network behavior, background execution, startup/config-home behavior, skills/plugins/MCP, CI permissions, or release scripts. The PR description states that search and Markdown behavior remain unchanged, so no blocker risk surface required disclosure.
Full details: No Hidden Policy Change
-
Explanation
PASS — The PR changes only two files and deletes two standalone no-op expressions:
collected;andnonTableContent;. No product, trust-model, routing-default, telemetry/network, or permission-policy behavior changes are present in the reviewed diff.
Full details: Description check
-
Explanation
The description follows the repository template. It explains the changes and rationale, documents user-facing and maintainer impact, lists validation commands and results, identifies skipped checks and reasons, and includes CI, CodeRabbit, and notes status.
-
Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
Summary
Remove the discarded
collected;andnonTableContent;reads. Search result counting, truncation, Markdown formatting and buffer flushing remain unchanged.Resolves Code Quality
js/useless-expressionfindings 1126 and 229 from the reported rule. This is one of four independent PRs covering the 17 currently returned findings; the original report mentioned 26, and the requester approved fixing the available inventory. Each branch starts directly from maina91f736ef1c257d00dd4ced04f86e21401289f40.Impact
Testing
bun install --frozen-lockfile.e504faf173257654c539f76d7f92c45fb5859a75with Bun 1.4.4 / Node 26.12.1:bun run check:static,bun run typecheck:fast,bun run typecheck:type-tests,node bin/openclaude --version,NODE_DISABLE_COMPILE_CACHE=1 node bin/openclaude --version, andgit diff --check.bun run security:pr-scan -- --base FETCH_HEAD --head HEADon the committed changes.bun run test src/utils/markdown.test.ts— 16 passed, including production Markdown and StreamingMarkdown rendering.Notes
Summary by CodeRabbit