Skip to content

Commit

Permalink
CIRC-2117: draft
Browse files Browse the repository at this point in the history
  • Loading branch information
Maksat-Galymzhan committed Jul 10, 2024
1 parent ea17564 commit ed6e028
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import static org.folio.circulation.support.StringUtil.urlEncode;
import static org.folio.circulation.support.results.Result.failed;
import static org.folio.circulation.support.results.Result.succeeded;
import static org.folio.circulation.support.results.ResultBinding.flatMapResult;
import static org.folio.circulation.support.results.ResultBinding.mapResult;

Expand Down Expand Up @@ -63,8 +64,7 @@ private Result<MultipleRecords<SearchInstance>> mapResponseToInstances(Response
private CompletableFuture<Result<SearchInstance>> updateItemDetails(SearchInstance searchInstance) {
log.debug("updateItemDetails:: searchInstance {}", () -> searchInstance);
if (searchInstance == null) {
return CompletableFuture.completedFuture(failed(new BadRequestFailure(
"Search result is empty")));
return CompletableFuture.completedFuture(succeeded(null));
}

Map<String, List<Item>> itemsByTenant = searchInstance.getItems()
Expand Down

0 comments on commit ed6e028

Please sign in to comment.