Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
matt2e committed Jun 6, 2024
1 parent 0add12d commit f2a29db
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions go-runtime/compile/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f2a29db

Please sign in to comment.