diff options
-rw-r--r-- | defererr.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/defererr.go b/defererr.go index 50b39ac..e7df464 100644 --- a/defererr.go +++ b/defererr.go @@ -72,6 +72,7 @@ func checkFunctions(pass *analysis.Pass, node ast.Node) { errorReturnField := funcDecl.Type.Results.List[errorReturnIndex] // TODO: Move to checkDeferFunc() + // Should we make this an ast.Visitor to store some state for `return` checking? ast.Inspect( funcDecl.Body, func(node ast.Node) bool { |