summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2017-12-04 14:18:48 -0500
committerMatthew Heon <matthew.heon@gmail.com>2017-12-04 14:18:48 -0500
commiteb942b1b47235ffddc37c6e353fbafcfa3a60a15 (patch)
tree460ffc9c4861964998d43700dcc9543319ce92aa
parent43c51c58ad620fe544ca43dac003e113f7bbd8bd (diff)
downloadpodman-eb942b1b47235ffddc37c6e353fbafcfa3a60a15.tar.gz
podman-eb942b1b47235ffddc37c6e353fbafcfa3a60a15.tar.bz2
podman-eb942b1b47235ffddc37c6e353fbafcfa3a60a15.zip
Fix lint
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
-rw-r--r--libpod/container.go12
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()
}