Skip to content

Commit

Permalink
skip processing in EmbeddablePlumXMetricProvider as soon as possible
Browse files Browse the repository at this point in the history
  • Loading branch information
saschaszott authored Dec 13, 2023
1 parent 5807bc0 commit 80e8388
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ public void setPublicationListViewEnabled(boolean publicationListViewEnabled) {

@Override
public boolean hasMetric(Context context, Item item, List<CrisMetrics> retrivedStoredMetrics) {
if (!super.hasMetric(context, item, retrivedStoredMetrics)) {
return false;
}

String entityType = getEntityType(item);
if (entityType != null) {
if (entityType.equals("Person")) {
Expand All @@ -162,8 +166,6 @@ public boolean hasMetric(Context context, Item item, List<CrisMetrics> retrivedS
}
}
}
} else {
return false;
}
return false;
}
Expand Down

0 comments on commit 80e8388

Please sign in to comment.