mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 23:18:17 +01:00
Simplify TradeUtil#getPaymentMethodNameWithCountryCode
These changes were requested in review of PR https://github.com/bisq-network/bisq/pull/4699
This commit is contained in:
parent
0656c57d39
commit
f764e9feb0
1 changed files with 7 additions and 8 deletions
|
@ -164,14 +164,13 @@ public class TradeUtil {
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getPaymentMethodNameWithCountryCode(Trade trade) {
|
public String getPaymentMethodNameWithCountryCode(Trade trade) {
|
||||||
String paymentMethodDescription = "";
|
if (trade == null)
|
||||||
if (trade != null) {
|
return "";
|
||||||
Offer offer = trade.getOffer();
|
|
||||||
checkNotNull(offer);
|
Offer offer = trade.getOffer();
|
||||||
checkNotNull(offer.getPaymentMethod());
|
checkNotNull(offer);
|
||||||
paymentMethodDescription = offer.getPaymentMethodNameWithCountryCode();
|
checkNotNull(offer.getPaymentMethod());
|
||||||
}
|
return offer.getPaymentMethodNameWithCountryCode();
|
||||||
return paymentMethodDescription;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue