all: minor code cleanups
While skimming the pkg/tool/cli code, I noticed that a switch
can be replaced by a boolean expression.
While here, apply three staticcheck suggestions around unused values.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I02b2d768b1fc9176a5f0d913b2de1e9f5ab549ae
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1199478
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Matthew Sackman <matthew@cue.works>