Use specific fmt verbs (avoid %v)

Remove useless conversions. Avoid unhandled errors.

PiperOrigin-RevId: 375834275
This commit is contained in:
Tamir Duberstein
2021-05-25 17:48:34 -07:00
committed by gVisor bot
parent 080d122326
commit a54cb9d8a2
3 changed files with 68 additions and 68 deletions
+1 -1
View File
@@ -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