From 89f0c4e85a38e415b0d4ed2c51e9e4b50ab964f7 Mon Sep 17 00:00:00 2001 From: chavacava Date: Wed, 20 Nov 2024 22:14:21 +0100 Subject: [PATCH] rename unused parameter --- rule/redundant_build_tag.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rule/redundant_build_tag.go b/rule/redundant_build_tag.go index cba84f9ad..52412b9b3 100644 --- a/rule/redundant_build_tag.go +++ b/rule/redundant_build_tag.go @@ -12,7 +12,7 @@ type RedundantBuildTagRule struct{} // Apply triggers if an old build tag `// +build` is found after a new one `//go:build`. // `//go:build` comments are automatically added by gofmt when Go 1.17+ is used. // See https://pkg.go.dev/cmd/go#hdr-Build_constraints -func (*RedundantBuildTagRule) Apply(file *lint.File, arguments lint.Arguments) []lint.Failure { +func (*RedundantBuildTagRule) Apply(file *lint.File, _ lint.Arguments) []lint.Failure { for _, group := range file.AST.Comments { hasGoBuild := false for _, comment := range group.List {