mirror of
https://github.com/mgechev/revive.git
synced 2025-01-24 03:47:45 +02:00
removes unused return value
This commit is contained in:
parent
b96b8ff365
commit
0cdcc25bc7
@ -48,7 +48,7 @@ type cognitiveComplexityLinter struct {
|
||||
onFailure func(lint.Failure)
|
||||
}
|
||||
|
||||
func (w cognitiveComplexityLinter) lint() ast.Visitor {
|
||||
func (w cognitiveComplexityLinter) lint() {
|
||||
f := w.file
|
||||
for _, decl := range f.AST.Decls {
|
||||
if fn, ok := decl.(*ast.FuncDecl); ok {
|
||||
@ -64,8 +64,6 @@ func (w cognitiveComplexityLinter) lint() ast.Visitor {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
type cognitiveComplexityVisitor struct {
|
||||
|
Loading…
x
Reference in New Issue
Block a user