summaryrefslogtreecommitdiff
path: root/libpod/boltdb_state.go
diff options
context:
space:
mode:
Diffstat (limited to 'libpod/boltdb_state.go')
-rw-r--r--libpod/boltdb_state.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/libpod/boltdb_state.go b/libpod/boltdb_state.go
index 805ff90fd..77a17ce12 100644
--- a/libpod/boltdb_state.go
+++ b/libpod/boltdb_state.go
@@ -620,7 +620,7 @@ func (s *BoltState) AllContainers() ([]*Container, error) {
return err
}
- err = allCtrsBucket.ForEach(func(id, name []byte) error {
+ return allCtrsBucket.ForEach(func(id, name []byte) error {
// If performance becomes an issue, this check can be
// removed. But the error messages that come back will
// be much less helpful.
@@ -637,7 +637,6 @@ func (s *BoltState) AllContainers() ([]*Container, error) {
return s.getContainerFromDB(id, ctr, ctrBucket)
})
- return err
})
if err != nil {
return nil, err