Skip to content

Commit 0b1074b

Browse files
CIRCSTORE-642 Use otherwise
1 parent ee74404 commit 0b1074b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/main/java/org/folio/service/event/handler/processor/ItemUpdateProcessorForRequest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@ protected Future<List<Change<Request>>> collectRelevantChanges(JsonObject payloa
7575
Future<Map<String, String>> fetchLocationAndServicePoint = updateItemAndServicePoint(newObject);
7676
return fetchLocationAndServicePoint
7777
.map(locationAndSpData -> addLocationAndServicePointChanges(locationAndSpData, changes))
78-
.compose(r -> succeededFuture(changes))
79-
.recover(throwable -> succeededFuture(changes));
78+
.otherwise(throwable -> changes);
8079
}
8180

8281
private static List<Change<Request>> addLocationAndServicePointChanges(

0 commit comments

Comments
 (0)