mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 01:41:11 +01:00
Fix 'unnecessary use of fully qualified name'
This commit is contained in:
parent
1ba2b6ca18
commit
4c2649b118
@ -125,8 +125,10 @@ class GrpcOffersService extends OffersImplBase {
|
||||
try {
|
||||
String offerId = req.getId();
|
||||
Optional<OpenOffer> 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();
|
||||
|
Loading…
Reference in New Issue
Block a user