Skip to content

Commit c6764ba

Browse files
committed
Update reconciler.go
1 parent 049be69 commit c6764ba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

utils/reconciler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func (r *ReconcilerBase) AddStatusWarning(newWarning StatusWarning) {
121121
break
122122
}
123123
}
124-
if index != -1 {
124+
if index == -1 {
125125
r.statusWarnings = append(r.statusWarnings, newWarning)
126126
} else if index < len(r.statusWarnings) {
127127
r.statusWarnings[index] = newWarning

0 commit comments

Comments
 (0)