Skip to content

Commit 8a06b20

Browse files
committed
remove if condition on close
1 parent e8c104f commit 8a06b20

File tree

1 file changed

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

1 file changed

+4
-6
lines changed

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,10 @@ void eventProcessingFailed(CustomResourceEvent event) {
151151

152152
@Override
153153
public void onClose(KubernetesClientException e) {
154-
if (e != null) {
155-
log.error("Error: ", e);
156-
// we will exit the application if there was a watching exception, because of the bug in fabric8 client
157-
// see https://github.com/fabric8io/kubernetes-client/issues/1318
158-
System.exit(1);
159-
}
154+
log.error("Error: ", e);
155+
// we will exit the application if there was a watching exception, because of the bug in fabric8 client
156+
// see https://github.com/fabric8io/kubernetes-client/issues/1318
157+
System.exit(1);
160158
}
161159
}
162160

0 commit comments

Comments
 (0)