Skip to content

Commit 440d961

Browse files
practicalswiftrandom-zebra
authored andcommitted
Remove redundant check (!ecc is always true)
1 parent bfd295b commit 440d961

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pivx-tx.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -611,15 +611,15 @@ static void MutateTx(CMutableTransaction& tx, const std::string& command, const
611611
} else if (command == "outaddr") {
612612
MutateTxAddOutAddr(tx, commandVal);
613613
} else if (command == "outpubkey") {
614-
if (!ecc) { ecc.reset(new Secp256k1Init()); }
614+
ecc.reset(new Secp256k1Init());
615615
MutateTxAddOutPubKey(tx, commandVal);
616616
} else if (command == "outmultisig") {
617-
if (!ecc) { ecc.reset(new Secp256k1Init()); }
617+
ecc.reset(new Secp256k1Init());
618618
MutateTxAddOutMultiSig(tx, commandVal);
619619
} else if (command == "outscript") {
620620
MutateTxAddOutScript(tx, commandVal);
621621
} else if (command == "sign") {
622-
if (!ecc) { ecc.reset(new Secp256k1Init()); }
622+
ecc.reset(new Secp256k1Init());
623623
MutateTxSign(tx, commandVal);
624624
} else if (command == "load") {
625625
RegisterLoad(commandVal);

0 commit comments

Comments
 (0)