1
0
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:
chavacava 2019-12-15 10:57:26 +01:00
parent b96b8ff365
commit 0cdcc25bc7

View File

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