Skip to content

Commit

Permalink
rename unused parameter (#1143)
Browse files Browse the repository at this point in the history
  • Loading branch information
chavacava authored Nov 20, 2024
1 parent 303ae4a commit 213d960
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rule/redundant_build_tag.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 213d960

Please sign in to comment.