pkg/autoupdate: remove redundant branch
[NO NEW TESTS NEEDED] - should not change behavior.
@@ -395,7 +395,8 @@ 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 {
@@ -405,7 +406,6 @@ func (u *updater) imageContainersMap() []error {
u.imageToPolicyMapper[id] = policyMap
// Now we know that `ctr` is configured for auto updates.
}
- }
return errors
}
