diff options
author | Matthew Heon <matthew.heon@gmail.com> | 2017-12-04 14:18:48 -0500 |
---|---|---|
committer | Matthew Heon <matthew.heon@gmail.com> | 2017-12-04 14:18:48 -0500 |
commit | eb942b1b47235ffddc37c6e353fbafcfa3a60a15 (patch) | |
tree | 460ffc9c4861964998d43700dcc9543319ce92aa /libpod | |
parent | 43c51c58ad620fe544ca43dac003e113f7bbd8bd (diff) | |
download | podman-eb942b1b47235ffddc37c6e353fbafcfa3a60a15.tar.gz podman-eb942b1b47235ffddc37c6e353fbafcfa3a60a15.tar.bz2 podman-eb942b1b47235ffddc37c6e353fbafcfa3a60a15.zip |
Fix lint
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Diffstat (limited to 'libpod')
-rw-r--r-- | libpod/container.go | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/libpod/container.go b/libpod/container.go index 4f8c148d1..df8d63fdc 100644 --- a/libpod/container.go +++ b/libpod/container.go @@ -819,11 +819,7 @@ func (c *Container) mountStorage() (err error) { } }() - if err := c.save(); err != nil { - return err - } - - return nil + return c.save() } // CleanupStorage unmounts all mount points in container and cleans up container storage @@ -859,9 +855,5 @@ func (c *Container) cleanupStorage() error { c.state.Mountpoint = "" c.state.Mounted = false - if err := c.save(); err != nil { - return err - } - - return nil + return c.save() } |