mirror of
https://github.com/mgechev/revive.git
synced 2025-02-03 13:11:25 +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)
|
onFailure func(lint.Failure)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (w cognitiveComplexityLinter) lint() ast.Visitor {
|
func (w cognitiveComplexityLinter) lint() {
|
||||||
f := w.file
|
f := w.file
|
||||||
for _, decl := range f.AST.Decls {
|
for _, decl := range f.AST.Decls {
|
||||||
if fn, ok := decl.(*ast.FuncDecl); ok {
|
if fn, ok := decl.(*ast.FuncDecl); ok {
|
||||||
@ -64,8 +64,6 @@ func (w cognitiveComplexityLinter) lint() ast.Visitor {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type cognitiveComplexityVisitor struct {
|
type cognitiveComplexityVisitor struct {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user