WalletTool: remove redundant if test

This commit is contained in:
Mike Hearn 2013-04-22 13:36:12 +02:00
parent 1341529228
commit 5112a94955

View File

@ -726,7 +726,7 @@ public class WalletTool {
ECKey key = null;
if (pubkey != null) {
key = wallet.findKeyFromPubKey(Hex.decode(pubkey));
} else if (addr != null) {
} else {
try {
Address address = new Address(wallet.getParams(), addr);
key = wallet.findKeyFromPubHash(address.getHash160());