From 2ae682968ff0e6221aa99137b1f55e291c4d397a Mon Sep 17 00:00:00 2001 From: Oleksandr Redko Date: Thu, 7 Nov 2024 13:58:37 +0200 Subject: [PATCH] refactor: remove unused parameter in unexported function (#1096) --- rule/string-format.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rule/string-format.go b/rule/string-format.go index ea19eab18..ecac3fa7c 100644 --- a/rule/string-format.go +++ b/rule/string-format.go @@ -295,7 +295,7 @@ func (r *stringFormatSubrule) apply(call *ast.CallExpr, scope *stringFormatSubru return } - r.generateFailure(unquoted, lit) + r.generateFailure(lit) } func (r *stringFormatSubrule) stringIsOK(s string) bool { @@ -307,7 +307,7 @@ func (r *stringFormatSubrule) stringIsOK(s string) bool { return matches } -func (r *stringFormatSubrule) generateFailure(s string, node ast.Node) { +func (r *stringFormatSubrule) generateFailure(node ast.Node) { var failure string switch { case len(r.errorMessage) > 0: