From 4c2649b118ea1e9aaf57a26acf52e24f1985125a Mon Sep 17 00:00:00 2001 From: ghubstan <36207203+ghubstan@users.noreply.github.com> Date: Mon, 7 Mar 2022 21:02:13 -0300 Subject: [PATCH] Fix 'unnecessary use of fully qualified name' --- .../src/main/java/bisq/daemon/grpc/GrpcOffersService.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/daemon/src/main/java/bisq/daemon/grpc/GrpcOffersService.java b/daemon/src/main/java/bisq/daemon/grpc/GrpcOffersService.java index 665569181b..cfb6cc3497 100644 --- a/daemon/src/main/java/bisq/daemon/grpc/GrpcOffersService.java +++ b/daemon/src/main/java/bisq/daemon/grpc/GrpcOffersService.java @@ -125,8 +125,10 @@ class GrpcOffersService extends OffersImplBase { try { String offerId = req.getId(); Optional myOpenOffer = coreApi.findMyOpenOffer(offerId); - Offer offer = myOpenOffer.map(OpenOffer::getOffer).orElseGet(() -> coreApi.getOffer(offerId)); - OfferInfo offerInfo = myOpenOffer.map(OfferInfo::toMyOfferInfo).orElseGet(() -> OfferInfo.toOfferInfo(offer)); + Offer offer = myOpenOffer.map(OpenOffer::getOffer) + .orElseGet(() -> coreApi.getOffer(offerId)); + OfferInfo offerInfo = myOpenOffer.map(OfferInfo::toMyOfferInfo) + .orElseGet(() -> toOfferInfo(offer)); var reply = GetOfferReply.newBuilder() .setOffer(offerInfo.toProtoMessage()) .build();