Skip to content

Commit 4e98b04

Browse files
committed
Fix time until lint hint
1 parent f831981 commit 4e98b04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/controller/state/reapply.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func ShouldReapply(obj metav1.Object) (bool, error) {
4848
return false, nil
4949
}
5050

51-
diff := timestamp.Add(period).Sub(time.Now())
51+
diff := time.Until(timestamp.Add(period))
5252

5353
return diff <= 0, nil
5454
}

0 commit comments

Comments
 (0)