Optimized if
This commit is contained in:
parent
c2fe44e586
commit
0b10b5f457
|
@ -57,7 +57,7 @@ public class BlockIOWallet implements IWallet {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getCryptoAddress(String cryptoCurrency) {
|
public String getCryptoAddress(String cryptoCurrency) {
|
||||||
if (!(cryptoCurrency.equalsIgnoreCase(ICurrencies.DOGE) || cryptoCurrency.equalsIgnoreCase(ICurrencies.BTC) || cryptoCurrency.equalsIgnoreCase(ICurrencies.LTC))) {
|
if (!getCryptoCurrencies().contains(cryptoCurrency)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
@ -75,7 +75,7 @@ public class BlockIOWallet implements IWallet {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public BigDecimal getCryptoBalance(String cryptoCurrency) {
|
public BigDecimal getCryptoBalance(String cryptoCurrency) {
|
||||||
if (!(cryptoCurrency.equalsIgnoreCase(ICurrencies.DOGE) || cryptoCurrency.equalsIgnoreCase(ICurrencies.BTC) || cryptoCurrency.equalsIgnoreCase(ICurrencies.LTC))) {
|
if (!getCryptoCurrencies().contains(cryptoCurrency)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
@ -92,7 +92,7 @@ public class BlockIOWallet implements IWallet {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String sendCoins(String destinationAddress, BigDecimal amount, String cryptoCurrency, String description) {
|
public String sendCoins(String destinationAddress, BigDecimal amount, String cryptoCurrency, String description) {
|
||||||
if (!(cryptoCurrency.equalsIgnoreCase(ICurrencies.DOGE) || cryptoCurrency.equalsIgnoreCase(ICurrencies.BTC) || cryptoCurrency.equalsIgnoreCase(ICurrencies.LTC))) {
|
if (!getCryptoCurrencies().contains(cryptoCurrency)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue