[Fix] Remove unused variable causing lint error in headlessToolRuntime#592
Merged
Conversation
Copilot created this pull request from a session on behalf of
Power-Maverick
June 30, 2026 17:28
View session
✅ PR ChecklistAll required checklist items are complete. This PR is ready for review. |
Bundle Size Report 📦
Bundle Analysis ReportsThe detailed bundle analysis reports are available in the workflow artifacts:
Download the artifacts from the workflow run to view interactive visualizations. Bundle size tracking is now active! This helps prevent bundle bloat. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CI was failing on the lint step due to an unused variable in
headlessToolRuntime.ts. ThegetPowerPlatformManagerhelper was defined but never called — Power Platform requests already accessservices.powerPlatformManagerdirectly viarequestPowerPlatform.Summary
Removes the dead
getPowerPlatformManagerclosure frombuildHeadlessToolboxApito fix the@typescript-eslint/no-unused-varslint error breaking CI.Type of change
Changes
src/main/mcp/headlessToolRuntime.ts— removed unusedgetPowerPlatformManagerfunction (lines 294–299);services.powerPlatformManageris accessed directly inrequestPowerPlatformalreadyArchitecture checklist
Packages (
types&validation)packages/Code quality
pnpm run typecheckpasses with 0 errors (warnings are acceptable)pnpm run lintpasses with 0 errors (warnings are acceptable)pnpm run buildcompletes successfullyTesting
pnpm run test:unitpasses (for changes tosrc/main/,src/common/, orsrc/renderer/utilities)pnpm run test:e2epasses (for UI / navigation / end-to-end flows)pnpm run dev)Scenario tested: No functional change — dead code removal only.
Breaking changes
Reviewer notes
Purely mechanical removal of dead code. No logic change.