[bisq-network/bisq] BSQ swaps: Low risk refactorings [2] (PR #5770)

Stan notifications at github.com
Fri Oct 22 19:10:15 CEST 2021


@ghubstan commented on this pull request.



> @@ -790,7 +790,7 @@ private void maybeUpdatePersistedOffers() {
         openOffersClone.forEach(originalOpenOffer -> {
             Offer originalOffer = originalOpenOffer.getOffer();
 
-            OfferPayload original = originalOffer.getOfferPayload();
+            OfferPayload original = originalOffer.getOfferPayload().orElseThrow();
             // We added CAPABILITIES with entry for Capability.MEDIATION in v1.1.6 and

```
.orElseThrow(() ->
                new IllegalStateException(format("Offer %s has no payload.", openOffer.getId())));
```
?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/5770#pullrequestreview-787090557
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20211022/d728b1c9/attachment.htm>


More information about the bisq-github mailing list