Skip to content

Commit

Permalink
fix: minor typo causing an NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
secondsun committed Mar 17, 2021
1 parent af6f880 commit e792cde
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ private boolean shouldProcess(T resource) {

List<KafkaCondition> conditions = getConditions(resource);

if (conditions == null | conditions.isEmpty()) {
if (conditions == null || conditions.isEmpty()) {
return true;
}

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

if (Status.True.equals(finishedCondition.getStatus())) {
//everything is up to date and the resource had finished, then skip
// everything is up to date and the resource had finished, then skip
return false;
} else {
return true;
}


}

private List<KafkaCondition> getConditions(T resource) {
Expand Down

0 comments on commit e792cde

Please sign in to comment.