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
@@ -67,7 +67,7 @@ func (c *saveCmd) SetFlags(f *flag.FlagSet) {
|
||||
}
|
||||
|
||||
// Execute implements subcommands.Command.
|
||||
func (c *saveCmd) Execute(_ context.Context, f *flag.FlagSet, args ...interface{}) subcommands.ExitStatus {
|
||||
func (c *saveCmd) Execute(_ context.Context, f *flag.FlagSet, args ...any) subcommands.ExitStatus {
|
||||
if f.NArg() > 0 {
|
||||
fmt.Fprintf(os.Stderr, "unexpected argument: %s\n", f.Args())
|
||||
return subcommands.ExitUsageError
|
||||
@@ -130,7 +130,7 @@ func (c *replayCmd) SetFlags(f *flag.FlagSet) {
|
||||
}
|
||||
|
||||
// Execute implements subcommands.Command.
|
||||
func (c *replayCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus {
|
||||
func (c *replayCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...any) subcommands.ExitStatus {
|
||||
if f.NArg() > 0 {
|
||||
fmt.Fprintf(os.Stderr, "unexpected argument: %s\n", f.Args())
|
||||
return subcommands.ExitUsageError
|
||||
|
||||
Reference in New Issue
Block a user