diff --git a/core/src/main/java/bisq/core/trade/TradeUtil.java b/core/src/main/java/bisq/core/trade/TradeUtil.java index cd4fd074aad..a026f6ab982 100644 --- a/core/src/main/java/bisq/core/trade/TradeUtil.java +++ b/core/src/main/java/bisq/core/trade/TradeUtil.java @@ -164,14 +164,13 @@ public String getMarketDescription(Trade trade) { } public String getPaymentMethodNameWithCountryCode(Trade trade) { - String paymentMethodDescription = ""; - if (trade != null) { - Offer offer = trade.getOffer(); - checkNotNull(offer); - checkNotNull(offer.getPaymentMethod()); - paymentMethodDescription = offer.getPaymentMethodNameWithCountryCode(); - } - return paymentMethodDescription; + if (trade == null) + return ""; + + Offer offer = trade.getOffer(); + checkNotNull(offer); + checkNotNull(offer.getPaymentMethod()); + return offer.getPaymentMethodNameWithCountryCode(); } /**