Skip to content

Commit 0c70dbc

Browse files
committed
fix
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
1 parent 3ac61b8 commit 0c70dbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/event/source/informer/TemporaryResourceCache.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public boolean isNewerThenKnownResource(T newResource, ResourceID resourceID) {
176176
return isLaterResourceVersion(newResource, resource.get());
177177
}
178178
var latestUpdated = latestUpdatedVersion.get(resourceID);
179-
return latestUpdated != null && parseResourceVersion(newResource) > latestUpdated;
179+
return latestUpdated == null || parseResourceVersion(newResource) > latestUpdated;
180180
}
181181

182182
private static <T extends HasMetadata> long parseResourceVersion(T newResource) {

0 commit comments

Comments
 (0)