Skip to content

Commit f7d535b

Browse files
authored
Merge pull request #140 from secondsun/startup_optimizations
fix: minor typo causing an NPE
2 parents 73bdb93 + e792cde commit f7d535b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

source/rhoas/src/main/java/com/openshift/cloud/controllers/AbstractCloudServicesController.java

+2-4
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ private boolean shouldProcess(T resource) {
6868

6969
List<KafkaCondition> conditions = getConditions(resource);
7070

71-
if (conditions == null | conditions.isEmpty()) {
71+
if (conditions == null || conditions.isEmpty()) {
7272
return true;
7373
}
7474

@@ -80,13 +80,11 @@ private boolean shouldProcess(T resource) {
8080
}
8181

8282
if (Status.True.equals(finishedCondition.getStatus())) {
83-
//everything is up to date and the resource had finished, then skip
83+
// everything is up to date and the resource had finished, then skip
8484
return false;
8585
} else {
8686
return true;
8787
}
88-
89-
9088
}
9189

9290
private List<KafkaCondition> getConditions(T resource) {

0 commit comments

Comments
 (0)