Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/cue: fix panic when importing empty files as a list
Empty files are represented as nil when parsed, which causes cue to panic as the condition is not considered when asked to import as a list. Fixes #2721 Change-Id: I20f3b49eb66661f156c06e036579ce6beddfe0d8 Signed-off-by: Thomas Way <thomas@6f.io> Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1173072 Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org> Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
- Loading branch information