diff options
author | Teddy Wing | 2023-05-25 00:06:35 +0200 |
---|---|---|
committer | Teddy Wing | 2023-05-25 00:06:35 +0200 |
commit | 1fdc8a5d6296dbbcfe4b09e12e39484bbda82265 (patch) | |
tree | cc6b10d0b0088f57b6a2abc71a66efd4364327b4 /defererr.go | |
parent | 8f7c7df68d955a2bba32f6be54119e1314410599 (diff) | |
download | godefererr-1fdc8a5d6296dbbcfe4b09e12e39484bbda82265.tar.bz2 |
Add note to check ident condition in return signature list loop
Diffstat (limited to 'defererr.go')
-rw-r--r-- | defererr.go | 3 |
1 files changed, 3 insertions, 0 deletions
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 } |