Optimized if

This commit is contained in:
b00lean 2017-07-31 23:11:25 +02:00
parent c2fe44e586
commit 0b10b5f457
1 changed files with 3 additions and 3 deletions

View File

@ -57,7 +57,7 @@ public class BlockIOWallet implements IWallet {
@Override
public String getCryptoAddress(String cryptoCurrency) {
if (!(cryptoCurrency.equalsIgnoreCase(ICurrencies.DOGE) || cryptoCurrency.equalsIgnoreCase(ICurrencies.BTC) || cryptoCurrency.equalsIgnoreCase(ICurrencies.LTC))) {
if (!getCryptoCurrencies().contains(cryptoCurrency)) {
return null;
}
try {
@ -75,7 +75,7 @@ public class BlockIOWallet implements IWallet {
@Override
public BigDecimal getCryptoBalance(String cryptoCurrency) {
if (!(cryptoCurrency.equalsIgnoreCase(ICurrencies.DOGE) || cryptoCurrency.equalsIgnoreCase(ICurrencies.BTC) || cryptoCurrency.equalsIgnoreCase(ICurrencies.LTC))) {
if (!getCryptoCurrencies().contains(cryptoCurrency)) {
return null;
}
try {
@ -92,7 +92,7 @@ public class BlockIOWallet implements IWallet {
@Override
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;
}
try {