internal/core/conver: make use of reflect.Value.IsZero
Its behavior on all the types where isOmitEmpty can return true
is exactly the same, because it's the same concept after all.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: Ifc6fabb71063d20a662061e7020a273b28161b6b
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/554167
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo+gerrithub@cuelang.org>
Unity-New-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Roger Peppe <rogpeppe@gmail.com>