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:
parent
6228ba57cf
commit
2ae682968f
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user