1
0
mirror of https://github.com/mgechev/revive.git synced 2024-11-21 17:16:40 +02:00

refactor: remove unused parameter in unexported function (#1096)

This commit is contained in:
Oleksandr Redko 2024-11-07 13:58:37 +02:00 committed by GitHub
parent 6228ba57cf
commit 2ae682968f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: