mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 09:54:16 +01:00
pay: remove gratuitous check for msatoshitok being 'null'.
json_get_params does this for us.
Fixes: 78adf0b
(pay: allow 'null' msatoshi field.)
Reported-by: ZmnSCPxj
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
dd599706cd
commit
dbef4a1827
@ -444,7 +444,7 @@ static void json_pay(struct command *cmd,
|
||||
|
||||
if (b11->msatoshi) {
|
||||
msatoshi = *b11->msatoshi;
|
||||
if (msatoshitok && !json_tok_is_null(buffer, msatoshitok)) {
|
||||
if (msatoshitok) {
|
||||
command_fail(cmd, "msatoshi parameter unnecessary");
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user