mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2024-11-19 18:00:39 +01:00
WalletTool: remove redundant if test
This commit is contained in:
parent
1341529228
commit
5112a94955
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user