Remove unused integrityLevelOrder variable to fix lint#23721
Merged
Conversation
Agent-Logs-Url: https://github.com/github/gh-aw/sessions/30b3cb89-e42a-4a52-bdf1-8674b449c11e Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Agent-Logs-Url: https://github.com/github/gh-aw/sessions/30b3cb89-e42a-4a52-bdf1-8674b449c11e Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
pelikhan
March 31, 2026 13:20
View session
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes CI lint failures by removing an unused variable in the cache integrity workflow code and tidying related Go module metadata.
Changes:
- Removed the unused
integrityLevelOrdervariable (and its associated comment) frompkg/workflow/cache_integrity.go. - Updated
go.mod/go.sumto drop now-unused module entries (github.com/sahilm/fuzzyand related sums).
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| pkg/workflow/cache_integrity.go | Removes a declared-but-unused variable triggering golangci-lint unused. |
| go.mod | Drops an unused indirect dependency entry. |
| go.sum | Removes sums for dependencies no longer needed after the module tidy. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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 lint (
golangci-lintunusedcheck) was failing due to a declared-but-never-referenced variable inpkg/workflow/cache_integrity.go.Change
var integrityLevelOrder = []string{"merged", "approved", "unapproved", "none"}— declared with a forward-looking comment about cache branch merging, but never consumed anywhere in the codebase.