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
@@ -176,7 +176,7 @@ type objdumpAnalyzer struct {
|
||||
}
|
||||
|
||||
// Run implements nogo.binaryAnalyzer.Run.
|
||||
func (ob *objdumpAnalyzer) Run(pass *analysis.Pass, binary io.Reader) (interface{}, error) {
|
||||
func (ob *objdumpAnalyzer) Run(pass *analysis.Pass, binary io.Reader) (any, error) {
|
||||
return run(pass, binary)
|
||||
}
|
||||
|
||||
@@ -652,7 +652,7 @@ func findReasons(pass *analysis.Pass, fdecl *ast.FuncDecl) ([]EscapeReason, bool
|
||||
}
|
||||
|
||||
// run performs the analysis.
|
||||
func run(pass *analysis.Pass, binary io.Reader) (interface{}, error) {
|
||||
func run(pass *analysis.Pass, binary io.Reader) (any, error) {
|
||||
calls, callsErr := loadObjdump(binary)
|
||||
if callsErr != nil {
|
||||
// Note that if this analysis fails, then we don't actually
|
||||
|
||||
Reference in New Issue
Block a user