Skip to content

Commit

Permalink
refactor: remove unused parameter in unexported function (#1096)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandear authored Nov 7, 2024
1 parent 6228ba5 commit 2ae6829
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rule/string-format.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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:
Expand Down

0 comments on commit 2ae6829

Please sign in to comment.