diff options
author | Tamir Duberstein <tamird@google.com> | 2021-05-25 17:45:35 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-05-25 17:48:34 -0700 |
commit | a54cb9d8a2ca38c3d905f8694a18e6e8bef0e28f (patch) | |
tree | dc518a6f2befc05467c136bf1c5414bbac277e9b /pkg/sentry/fsimpl | |
parent | 080d122326a55f43ed8bc97c6c319d5ee87b1ca5 (diff) |
Use specific fmt verbs (avoid %v)
Remove useless conversions. Avoid unhandled errors.
PiperOrigin-RevId: 375834275
Diffstat (limited to 'pkg/sentry/fsimpl')
-rw-r--r-- | pkg/sentry/fsimpl/testutil/kernel.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/fsimpl/testutil/kernel.go b/pkg/sentry/fsimpl/testutil/kernel.go index 33e52ce64..8d47b5c40 100644 --- a/pkg/sentry/fsimpl/testutil/kernel.go +++ b/pkg/sentry/fsimpl/testutil/kernel.go @@ -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 |