Skip to content

Commit

Permalink
fix linter warnings and make the code more laconic
Browse files Browse the repository at this point in the history
  • Loading branch information
tony2001 committed Jan 4, 2022
1 parent dc1f6d3 commit f65d762
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checkers/internal/lintutil/astfind.go
Expand Up @@ -11,7 +11,7 @@ import (
// followFunc has to return true in order to continuing traversing the node and return false otherwise.
// Matched node is returned.
// If none of the nodes matched predicate, nil is returned.
func FindNode(root ast.Node, followFunc func(ast.Node) bool, pred func(ast.Node) bool) ast.Node {
func FindNode(root ast.Node, followFunc, pred func(ast.Node) bool) ast.Node {
var (
found ast.Node
preFunc func(*astutil.Cursor) bool
Expand Down

0 comments on commit f65d762

Please sign in to comment.