Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/astinternal: use reflect.Value.IsNil consistently
The code was using a mix of IsValid and IsNil checks on reflect.Value; use IsNil consistently. This is a few more lines of code, but it's also more obvious. While here, make the comments a bit clearer. Signed-off-by: Daniel Martí <[email protected]> Change-Id: I8fcd0f2cb43e9861807a4eccd78de4e66f6a419b Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1200889 Reviewed-by: Roger Peppe <[email protected]> Unity-Result: CUE porcuepine <[email protected]> TryBot-Result: CUEcueckoo <[email protected]>
- Loading branch information