Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JavokhirAbdullayev committed Aug 29, 2024
1 parent 9c49ebb commit 398f4df
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ protected String addCqlSubMatchCondition(DataImportEventPayload eventPayload) {
cqlSubMatch = getConditionByMultiMatchResult(eventPayload);
} else if (isNotEmpty(eventPayload.getContext().get(INSTANCES_IDS_KEY))) {
cqlSubMatch = getConditionByMultipleMarcBibMatchResult(eventPayload);
} else if (IsNotNullOrEmpty(eventPayload.getContext().get(EntityType.HOLDINGS.value()))) {
} else if (isNotNullOrEmpty(eventPayload.getContext().get(EntityType.HOLDINGS.value()))) {
JsonObject holdingAsJson = new JsonObject(eventPayload.getContext().get(EntityType.HOLDINGS.value()));
if (holdingAsJson.getJsonObject(HOLDINGS_FIELD) != null) {
holdingAsJson = holdingAsJson.getJsonObject(HOLDINGS_FIELD);
Expand All @@ -72,7 +72,7 @@ protected String addCqlSubMatchCondition(DataImportEventPayload eventPayload) {
return cqlSubMatch;
}

private static boolean IsNotNullOrEmpty(String value) {
private static boolean isNotNullOrEmpty(String value) {
if (value == null || value.equals(EMPTY_ARRAY))
return false;
return isNotEmpty(value);
Expand Down

0 comments on commit 398f4df

Please sign in to comment.