mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
convert uses of interface{} to any
Done via:
find . -name "*.go" | xargs sed -i -E 's/interface\{\}/any/g'
PiperOrigin-RevId: 487033228
This commit is contained in:
committed by
gVisor bot
parent
c82b70015d
commit
d8aa09e04c
@@ -73,7 +73,7 @@ func (r RegisterMismatchError) Error() string {
|
||||
}
|
||||
|
||||
// addRegisterMisatch allows simple chaining of register mismatches.
|
||||
func addRegisterMismatch(err error, reg string, got, expected interface{}) error {
|
||||
func addRegisterMismatch(err error, reg string, got, expected any) error {
|
||||
errStr := fmt.Sprintf("%s got %08x, expected %08x", reg, got, expected)
|
||||
switch r := err.(type) {
|
||||
case nil:
|
||||
|
||||
Reference in New Issue
Block a user