Mirror of https://github.com/cue-lang/cue cuelang.org
cue go

all: replace cue.Value.Null with IsNull when we just need a bool master

Null returns a full error when a cue.Value is not a null, which allocates unnecessarily when the caller just needs to have the boolean rather than the full error when it's not a null. Signed-off-by: Daniel Martí <mvdan@mvdan.cc> Change-Id: I5940530257b3fddfa51b97cfdbf5daf018604e87 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1227396 Reviewed-by: Matthew Sackman <matthew@cue.works> Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>


+2 -2
2 changed files