From 1fdc8a5d6296dbbcfe4b09e12e39484bbda82265 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Thu, 25 May 2023 00:06:35 +0200 Subject: Add note to check ident condition in return signature list loop --- defererr.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'defererr.go') diff --git a/defererr.go b/defererr.go index 96c5569..126f824 100644 --- a/defererr.go +++ b/defererr.go @@ -81,6 +81,9 @@ func checkFunctions(pass *analysis.Pass, node ast.Node) { for i, returnVal := range funcDecl.Type.Results.List { returnIdent, ok := returnVal.Type.(*ast.Ident) if !ok { + // TODO: Do we need to `return true` here? Does this check + // mean that variables are not declared in the return + // signature? continue } -- cgit v1.2.3