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 <[email protected]> Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1173072 Unity-Result: CUE porcuepine <[email protected]> TryBot-Result: CUEcueckoo <[email protected]> Reviewed-by: Daniel Martí <[email protected]>
- Loading branch information