From dabd3a92c65c0b7b0bff96233dddcf83a36f965b Mon Sep 17 00:00:00 2001 From: Marcin Federowicz Date: Mon, 25 Dec 2023 01:45:26 +0100 Subject: [PATCH] revert where parameter is not used --- rule/confusing-naming.go | 2 +- rule/confusing-results.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rule/confusing-naming.go b/rule/confusing-naming.go index 02b082168..daaf51c81 100644 --- a/rule/confusing-naming.go +++ b/rule/confusing-naming.go @@ -47,7 +47,7 @@ var allPkgs = packages{pkgs: make([]pkgMethods, 1)} type ConfusingNamingRule struct{} // Apply applies the rule to given file. -func (r *ConfusingNamingRule) Apply(file *lint.File, _ lint.Arguments) []lint.Failure { +func (*ConfusingNamingRule) Apply(file *lint.File, _ lint.Arguments) []lint.Failure { var failures []lint.Failure fileAst := file.AST pkgm := allPkgs.methodNames(file.Pkg) diff --git a/rule/confusing-results.go b/rule/confusing-results.go index 7430ce0ba..1b79ada9c 100644 --- a/rule/confusing-results.go +++ b/rule/confusing-results.go @@ -10,7 +10,7 @@ import ( type ConfusingResultsRule struct{} // Apply applies the rule to given file. -func (r *ConfusingResultsRule) Apply(file *lint.File, _ lint.Arguments) []lint.Failure { +func (*ConfusingResultsRule) Apply(file *lint.File, _ lint.Arguments) []lint.Failure { var failures []lint.Failure fileAst := file.AST