3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-12 18:25:51 +00:00

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; ECKey key = null;
if (pubkey != null) { if (pubkey != null) {
key = wallet.findKeyFromPubKey(Hex.decode(pubkey)); key = wallet.findKeyFromPubKey(Hex.decode(pubkey));
} else if (addr != null) { } else {
try { try {
Address address = new Address(wallet.getParams(), addr); Address address = new Address(wallet.getParams(), addr);
key = wallet.findKeyFromPubHash(address.getHash160()); key = wallet.findKeyFromPubHash(address.getHash160());