From f2a29dbb3a85609c6e90357981eeaf1da6669f2c Mon Sep 17 00:00:00 2001 From: Matt Toohey Date: Thu, 6 Jun 2024 17:15:26 +1000 Subject: [PATCH] fix lint --- go-runtime/compile/schema.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/go-runtime/compile/schema.go b/go-runtime/compile/schema.go index 8ac126eeca..b71a2e67d7 100644 --- a/go-runtime/compile/schema.go +++ b/go-runtime/compile/schema.go @@ -427,9 +427,10 @@ func parseCall(pctx *parseContext, node *ast.CallExpr, stack []ast.Node) { } ref := parseVerbRef(pctx, node.Args[1]) if ref == nil { - ref, parsedRef := parseSelectorRef(node.Args[1]) var suffix string - if parsedRef && pctx.schema.Resolve(ref).Ok() { + var ok bool + ref, ok = parseSelectorRef(node.Args[1]) + if ok && pctx.schema.Resolve(ref).Ok() { suffix = ", does it need to be exported?" } if sel, ok := node.Args[1].(*ast.SelectorExpr); ok {