all: remove redundant interface type assertions
These two are of the form:
type T interface { ... }
var v1 T
v2 := v1.(T)
That is, if v1 is already of interface type T,
then the type assertion `.(T)` is unnecessary.
Found via staticcheck's S1040.
Change-Id: Icd57e251121cb1f646106115ab5c9f9cb40768bb
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/536097
Unity-Result: CUEcueckoo <cueckoo@cuelang.org>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Roger Peppe <rogpeppe@gmail.com>