Skip to content

linter: wastedassign#836

Closed
mzihlmann wants to merge 1 commit into
mainfrom
lint-wastedassign
Closed

linter: wastedassign#836
mzihlmann wants to merge 1 commit into
mainfrom
lint-wastedassign

Conversation

@mzihlmann

Copy link
Copy Markdown
Collaborator

Carves the wastedassign findings out of #539. Three assignments that are overwritten before use are dropped: copy.go's uid, gid := -1, -1, run.go's val = "", and a test's r := "" (all become plain var declarations or are removed). Behaviour-preserving. Overlaps the ineffassign PR #831-family on the copy.go/run.go lines, which is fine to reconcile at merge. Not enabled in the config here, that stays in #539.

@codecov

codecov Bot commented Jun 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@mzihlmann

Copy link
Copy Markdown
Collaborator Author

Folded into #833 (bundled small linter cleanups).

@mzihlmann mzihlmann closed this Jun 26, 2026
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