mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +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 {
|
try {
|
||||||
String offerId = req.getId();
|
String offerId = req.getId();
|
||||||
Optional<OpenOffer> myOpenOffer = coreApi.findMyOpenOffer(offerId);
|
Optional<OpenOffer> myOpenOffer = coreApi.findMyOpenOffer(offerId);
|
||||||
Offer offer = myOpenOffer.map(OpenOffer::getOffer).orElseGet(() -> coreApi.getOffer(offerId));
|
Offer offer = myOpenOffer.map(OpenOffer::getOffer)
|
||||||
OfferInfo offerInfo = myOpenOffer.map(OfferInfo::toMyOfferInfo).orElseGet(() -> OfferInfo.toOfferInfo(offer));
|
.orElseGet(() -> coreApi.getOffer(offerId));
|
||||||
|
OfferInfo offerInfo = myOpenOffer.map(OfferInfo::toMyOfferInfo)
|
||||||
|
.orElseGet(() -> toOfferInfo(offer));
|
||||||
var reply = GetOfferReply.newBuilder()
|
var reply = GetOfferReply.newBuilder()
|
||||||
.setOffer(offerInfo.toProtoMessage())
|
.setOffer(offerInfo.toProtoMessage())
|
||||||
.build();
|
.build();
|
||||||
|
Loading…
Reference in New Issue
Block a user