mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Use specific fmt verbs (avoid %v)
Remove useless conversions. Avoid unhandled errors. PiperOrigin-RevId: 375834275
This commit is contained in:
committed by
gVisor bot
parent
080d122326
commit
a54cb9d8a2
@@ -181,7 +181,7 @@ func createMemoryFile() (*pgalloc.MemoryFile, error) {
|
||||
memfile := os.NewFile(uintptr(memfd), memfileName)
|
||||
mf, err := pgalloc.NewMemoryFile(memfile, pgalloc.MemoryFileOpts{})
|
||||
if err != nil {
|
||||
memfile.Close()
|
||||
_ = memfile.Close()
|
||||
return nil, fmt.Errorf("error creating pgalloc.MemoryFile: %v", err)
|
||||
}
|
||||
return mf, nil
|
||||
|
||||
Reference in New Issue
Block a user