From d0d16dd47debff2997efc1028cec6532dcf30637 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 20 May 2023 17:32:59 +0200 Subject: Clarify why we skip non-local functions --- capturedrefrace.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/capturedrefrace.go b/capturedrefrace.go index fbb3ebe..c0bc646 100644 --- a/capturedrefrace.go +++ b/capturedrefrace.go @@ -95,6 +95,8 @@ func run(pass *analysis.Pass) (interface{}, error) { funcLit, ok = funcLitFromIdent(goStmtFunc) default: + // The function being run by the `go` statement is an + // unsupported type. return } if !ok { -- cgit v1.2.3