aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2023-05-20 17:32:59 +0200
committerTeddy Wing2023-05-20 17:32:59 +0200
commitd0d16dd47debff2997efc1028cec6532dcf30637 (patch)
tree456e0a85fd108b63b0067278ee2869b49c1aae7b
parentd2b49900afa77c50ea44f750aa568e61ba663af1 (diff)
downloadgocapturedrefrace-d0d16dd47debff2997efc1028cec6532dcf30637.tar.bz2
Clarify why we skip non-local functionsv0.0.1
-rw-r--r--capturedrefrace.go2
1 files changed, 2 insertions, 0 deletions
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 {