Skip to content

Commit

Permalink
cue: add missing return
Browse files Browse the repository at this point in the history
Change-Id: I2f65c464b34f4ba8526af7dde0c826f3d44bf84f
Reviewed-on: https://cue-review.googlesource.com/c/cue/+/2200
Reviewed-by: Marcel van Lohuizen <mpvl@google.com>
  • Loading branch information
mpvl committed Jun 11, 2019
1 parent 73724f7 commit 3dc94f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cue/ast.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ func (v *astVisitor) walk(astNode ast.Node) (value value) {
switch x := e.(type) {
case *ast.EmitDecl:
// Only allowed at top-level.
v1.error(x, "emitting values is only allowed at top level")
return v1.error(x, "emitting values is only allowed at top level")
case *ast.Field, *ast.Alias:
v1.walk(e)
case *ast.ComprehensionDecl:
Expand Down

0 comments on commit 3dc94f0

Please sign in to comment.