diff options
-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() } |