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) {
|
||||
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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue