aboutsummaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'pkg')
-rw-r--r--pkg/autoupdate/autoupdate.go18
1 files changed, 9 insertions, 9 deletions
diff --git a/pkg/autoupdate/autoupdate.go b/pkg/autoupdate/autoupdate.go
index 7bda0ac27..7586468a0 100644
--- a/pkg/autoupdate/autoupdate.go
+++ b/pkg/autoupdate/autoupdate.go
@@ -395,16 +395,16 @@ func (u *updater) imageContainersMap() []error {
// Skip labels not related to autoupdate
if policy == PolicyDefault {
continue
- } else {
- id, _ := ctr.Image()
- policyMap, exists := u.imageToPolicyMapper[id]
- if !exists {
- policyMap = make(map[Policy][]*libpod.Container)
- }
- policyMap[policy] = append(policyMap[policy], ctr)
- u.imageToPolicyMapper[id] = policyMap
- // Now we know that `ctr` is configured for auto updates.
}
+
+ id, _ := ctr.Image()
+ policyMap, exists := u.imageToPolicyMapper[id]
+ if !exists {
+ policyMap = make(map[Policy][]*libpod.Container)
+ }
+ policyMap[policy] = append(policyMap[policy], ctr)
+ u.imageToPolicyMapper[id] = policyMap
+ // Now we know that `ctr` is configured for auto updates.
}
return errors