Skip to content

Fix for Unused variable, import, function or class#752

Merged
rithviknishad merged 1 commit intomainfrom
finding-autofix-072e9af1
Apr 8, 2026
Merged

Fix for Unused variable, import, function or class#752
rithviknishad merged 1 commit intomainfrom
finding-autofix-072e9af1

Conversation

@rithviknishad
Copy link
Copy Markdown
Member

The best fix is to remove validatePagination from the import list in packages/mcp-server/src/tools/aggregates.ts if it is not referenced anywhere in that file. This preserves runtime behavior and only cleans up dead code.

Specifically:

  • Edit the named import from ../utils.js.
  • Remove only validatePagination from that import block.
  • Keep createSuccessResult and createErrorResult unchanged.

No new methods, definitions, or external imports are needed.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@rithviknishad rithviknishad marked this pull request as ready for review April 8, 2026 11:38
@rithviknishad rithviknishad merged commit b0c4809 into main Apr 8, 2026
2 checks passed
@rithviknishad rithviknishad deleted the finding-autofix-072e9af1 branch April 8, 2026 11:38
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