Skip to content

Remove unused strPtr helper to fix Go lint#17646

Merged
pelikhan merged 2 commits intocopilot/fix-draft-expression-handler-configfrom
copilot/lint-go-code-yet-again
Feb 22, 2026
Merged

Remove unused strPtr helper to fix Go lint#17646
pelikhan merged 2 commits intocopilot/fix-draft-expression-handler-configfrom
copilot/lint-go-code-yet-again

Conversation

Copy link
Contributor

Copilot AI commented Feb 22, 2026

CI was failing on the Lint go step due to an unused function in the shared test helpers.

Changes

  • pkg/workflow/test_helpers_shared_test.go: Remove strPtr — defined but never referenced anywhere in the package. boolPtr and mockValidationError remain as they are actively used.
Original prompt

Reference: https://github.com/github/gh-aw/actions/runs/22270087252/job/64423614106#step:7:1
Lint go


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
@pelikhan pelikhan marked this pull request as ready for review February 22, 2026 04:28
Copilot AI review requested due to automatic review settings February 22, 2026 04:28
@pelikhan pelikhan merged commit f80f544 into copilot/fix-draft-expression-handler-config Feb 22, 2026
1 check passed
@pelikhan pelikhan deleted the copilot/lint-go-code-yet-again branch February 22, 2026 04:28
Copilot AI restored the copilot/lint-go-code-yet-again branch February 22, 2026 04:28
Copilot AI changed the title [WIP] Lint Go code for code quality Remove unused strPtr helper to fix Go lint Feb 22, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses a linting issue by removing an unused helper function from test code. The change improves code quality by eliminating dead code identified by the linter.

Changes:

  • Removed the unused strPtr helper function from pkg/workflow/test_helpers_shared_test.go

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

3 participants