Skip to content

Commit baba0ad

Browse files
committed
test(dataprotection): simplify status patch counter
1 parent dde83b7 commit baba0ad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

controllers/dataprotection/backup_controller_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func (w *statusPatchCountingWriter) Patch(
9999
patch client.Patch,
100100
opts ...client.SubResourcePatchOption,
101101
) error {
102-
*w.count = *w.count + 1
102+
(*w.count)++
103103
if w.patchErr != nil {
104104
return w.patchErr
105105
}

0 commit comments

Comments
 (0)