From f65d7629291a33e26a8166ba7cc8a5d83ac6e36e Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Tue, 4 Jan 2022 13:12:23 +0300 Subject: [PATCH] fix linter warnings and make the code more laconic --- checkers/internal/lintutil/astfind.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checkers/internal/lintutil/astfind.go b/checkers/internal/lintutil/astfind.go index 56a8f4169..a6d0ad7c4 100644 --- a/checkers/internal/lintutil/astfind.go +++ b/checkers/internal/lintutil/astfind.go @@ -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