Skip to content

Commit e1dd5d2

Browse files
author
attila.meszaros
committed
- minor code improvement
1 parent 0c28244 commit e1dd5d2

File tree

1 file changed

+1
-1
lines changed
  • operator-framework/src/main/java/com/github/containersolutions/operator/processing

1 file changed

+1
-1
lines changed

operator-framework/src/main/java/com/github/containersolutions/operator/processing/EventDispatcher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ public void handleEvent(CustomResourceEvent event) {
4343
log.error("Received error for resource: {}", resource.getMetadata().getName());
4444
return;
4545
}
46-
Context context = new DefaultContext(new RetryInfo(event.getRetryCount(), event.getRetryExecution().isLastExecution()));
4746
if (markedForDeletion(resource) && !ControllerUtils.hasDefaultFinalizer(resource, resourceDefaultFinalizer)) {
4847
return;
4948
}
49+
Context context = new DefaultContext(new RetryInfo(event.getRetryCount(), event.getRetryExecution().isLastExecution()));
5050
if (markedForDeletion(resource)) {
5151
boolean removeFinalizer = controller.deleteResource(resource, context);
5252
if (removeFinalizer && ControllerUtils.hasDefaultFinalizer(resource, resourceDefaultFinalizer)) {

0 commit comments

Comments
 (0)