Skip to content

Conversation

@boguan
Copy link

@boguan boguan commented Jan 26, 2026

Remove duplicate removeCodeBlocks() call in keyword-detector/index.ts.

The detectKeywordsWithType() function already calls removeCodeBlocks() internally, so calling it before passing the text was redundant and caused unnecessary double processing.

Summary

  • Remove redundant removeCodeBlocks() call to avoid duplicate text processing

Changes

  • Removed removeCodeBlocks() wrapper in index.ts when calling detectKeywordsWithType()
  • detectKeywordsWithType() already handles code block removal internally, making the external call unnecessary

Screenshots

Testing

bun run typecheck
bun test

Summary by cubic

Removed a redundant removeCodeBlocks() call in keyword-detector to avoid double processing and reduce minor overhead. Behavior stays the same since detectKeywordsWithType() already removes code blocks internally.

Written for commit 9b26703. Summary will update on new commits.

Remove duplicate removeCodeBlocks() call in keyword-detector/index.ts.

The detectKeywordsWithType() function already calls removeCodeBlocks()
internally, so calling it before passing the text was redundant and
caused unnecessary double processing.
@github-actions
Copy link
Contributor

github-actions bot commented Jan 26, 2026

All contributors have signed the CLA. Thank you! ✅
Posted by the CLA Assistant Lite bot.

Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

@boguan
Copy link
Author

boguan commented Jan 26, 2026

I have read the CLA Document and I hereby sign the CLA

github-actions bot added a commit that referenced this pull request Jan 26, 2026
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