Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
qqmyers committed May 17, 2024
1 parent 522bee1 commit a0c97a7
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1501,13 +1501,8 @@ public boolean isValid(SolrSearchResult result) {
if(obj != null && obj instanceof Dataset) {

return result.isValid(x -> permissionsWrapper.canUpdateDataset(getDataverseRequest(), datasetService.find(x.getEntityId())));
} else if(obj != null && obj instanceof DataFile) {
logger.info("Object is a DataFile");
} else if(obj != null && obj instanceof Dataverse) {
logger.info("Object is a Dataverse");
} else if(obj == null) {
logger.info("Object is null");
}
logger.fine("isValid called for dvObject that is null (or not a dataset), id: " + id + "This can occur if a dataset is deleted while a search is in progress");
return result.isValid(x -> true);
}

Expand Down

0 comments on commit a0c97a7

Please sign in to comment.