From ee8f19e7be8626b17498a3c5602a7390a4d671e3 Mon Sep 17 00:00:00 2001 From: baude Date: Wed, 10 Oct 2018 12:22:35 -0500 Subject: Make podman ps fast Like Ricky Bobby, we want to go fast. Signed-off-by: baude --- libpod/container_api.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'libpod/container_api.go') diff --git a/libpod/container_api.go b/libpod/container_api.go index 93becb80d..41a131ea2 100644 --- a/libpod/container_api.go +++ b/libpod/container_api.go @@ -666,14 +666,10 @@ func (c *Container) Batch(batchFunc func(*Container) error) error { newCtr.valid = true newCtr.batched = true - - if err := batchFunc(newCtr); err != nil { - return err - } - + err := batchFunc(newCtr) newCtr.batched = false - return c.save() + return err } // Sync updates the current state of the container, checking whether its state -- cgit v1.2.3-54-g00ecf