Rename unused parameters to '_'.

This commit is contained in:
Martin Smith
2025-02-28 19:52:43 +00:00
parent 29b4680873
commit 3788605127
12 changed files with 17 additions and 17 deletions

View File

@@ -12,7 +12,7 @@ import (
// ```
// defer TestSetFlag(t, features.Flags, features.ExampleFlag, true)()
// ```
func TestSetFlag(t *testing.T, f *FlagSet, flag FlagName, value bool) func() {
func TestSetFlag(_ *testing.T, f *FlagSet, flag FlagName, value bool) func() {
current := f.Enabled(flag)
panicIfCalled := func(msg string) {