Skip to content

Commit e5468a1

Browse files
committed
Remove unreachable help conditions
1 parent 7be9a9a commit e5468a1

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/wallet/rpcwallet.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2363,8 +2363,6 @@ UniValue walletpassphrase(const JSONRPCRequest& request)
23632363

23642364
LOCK2(cs_main, pwallet->cs_wallet);
23652365

2366-
if (request.fHelp)
2367-
return true;
23682366
if (!pwallet->IsCrypted()) {
23692367
throw JSONRPCError(RPC_WALLET_WRONG_ENC_STATE, "Error: running with an unencrypted wallet, but walletpassphrase was called.");
23702368
}
@@ -2429,8 +2427,6 @@ UniValue walletpassphrasechange(const JSONRPCRequest& request)
24292427

24302428
LOCK2(cs_main, pwallet->cs_wallet);
24312429

2432-
if (request.fHelp)
2433-
return true;
24342430
if (!pwallet->IsCrypted()) {
24352431
throw JSONRPCError(RPC_WALLET_WRONG_ENC_STATE, "Error: running with an unencrypted wallet, but walletpassphrasechange was called.");
24362432
}
@@ -2485,8 +2481,6 @@ UniValue walletlock(const JSONRPCRequest& request)
24852481

24862482
LOCK2(cs_main, pwallet->cs_wallet);
24872483

2488-
if (request.fHelp)
2489-
return true;
24902484
if (!pwallet->IsCrypted()) {
24912485
throw JSONRPCError(RPC_WALLET_WRONG_ENC_STATE, "Error: running with an unencrypted wallet, but walletlock was called.");
24922486
}
@@ -2532,8 +2526,6 @@ UniValue encryptwallet(const JSONRPCRequest& request)
25322526

25332527
LOCK2(cs_main, pwallet->cs_wallet);
25342528

2535-
if (request.fHelp)
2536-
return true;
25372529
if (pwallet->IsCrypted()) {
25382530
throw JSONRPCError(RPC_WALLET_WRONG_ENC_STATE, "Error: running with an encrypted wallet, but encryptwallet was called.");
25392531
}

0 commit comments

Comments
 (0)