Mirror of https://github.com/cue-lang/cue cuelang.org
cue go
Something went wrong. Try again.
all: resolve unused value and yoda conditionals staticcheck warnings master
Values which are assigned to a variable but unused are either benign, which cause the code to be confusing to the reader, or actually lead to bugs, such as missed error checks in some tests. Also, consistently place the constant on the right side in comparisons. Signed-off-by: Daniel Martí <mvdan@mvdan.cc> Change-Id: Icb5ef7c57fd26c6e2f82bf7309ebcbea1c5d0fbe Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1195056 TryBot-Result: CUEcueckoo <cueckoo@cuelang.org> Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com> Reviewed-by: Roger Peppe <rogpeppe@gmail.com>
Author Daniel Martí Date (May 23, 2024, 8:49 AM UTC) Commit fca1bcc3 fca1bcc3e1ea57373ad8724854ebbd2de2ee0855 Parent 2adcaa65 2adcaa6507722785996072a7d3db2082e7b469c4