mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-11-02 21:47:18 +00:00
WalletTool: remove redundant if test
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user