Skip to content

Remove unused integrityLevelOrder variable to fix lint#23721

Merged
pelikhan merged 2 commits intomainfrom
copilot/lint-go
Mar 31, 2026
Merged

Remove unused integrityLevelOrder variable to fix lint#23721
pelikhan merged 2 commits intomainfrom
copilot/lint-go

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 31, 2026

CI lint (golangci-lint unused check) was failing due to a declared-but-never-referenced variable in pkg/workflow/cache_integrity.go.

Change

  • Removed var integrityLevelOrder = []string{"merged", "approved", "unapproved", "none"} — declared with a forward-looking comment about cache branch merging, but never consumed anywhere in the codebase.

Copilot AI and others added 2 commits March 31, 2026 13:13
@pelikhan pelikhan marked this pull request as ready for review March 31, 2026 13:24
Copilot AI review requested due to automatic review settings March 31, 2026 13:24
Copy link
Copy Markdown
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 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 integrityLevelOrder variable (and its associated comment) from pkg/workflow/cache_integrity.go.
  • Updated go.mod / go.sum to drop now-unused module entries (github.com/sahilm/fuzzy and 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.

@pelikhan pelikhan merged commit 57eb079 into main Mar 31, 2026
65 of 67 checks passed
@pelikhan pelikhan deleted the copilot/lint-go branch March 31, 2026 13:35
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