Skip to content

Commit b975d34

Browse files
committed
remove unnecessary from loop
Signed-off-by: Anik Bhattacharjee <[email protected]>
1 parent e419a97 commit b975d34

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

pkg/controller/operators/catalog/operator.go

-6
Original file line numberDiff line numberDiff line change
@@ -1246,14 +1246,8 @@ func (o *Operator) setSubsCond(subs []*v1alpha1.Subscription, condType v1alpha1.
12461246
cond.Reason = reason
12471247
cond.Message = message
12481248
if setTrue {
1249-
if cond.Status == corev1.ConditionTrue {
1250-
continue
1251-
}
12521249
cond.Status = corev1.ConditionTrue
12531250
} else {
1254-
if cond.Status == corev1.ConditionFalse {
1255-
continue
1256-
}
12571251
cond.Status = corev1.ConditionFalse
12581252
}
12591253
sub.Status.SetCondition(cond)

0 commit comments

Comments
 (0)