Skip to content

Commit

Permalink
pay: remove gratuitous check for msatoshitok being 'null'.
Browse files Browse the repository at this point in the history
json_get_params does this for us.

Fixes: 78adf0b (pay: allow 'null' msatoshi field.)
Reported-by: ZmnSCPxj
Signed-off-by: Rusty Russell <[email protected]>
  • Loading branch information
rustyrussell authored and cdecker committed Jan 15, 2018
1 parent dd59970 commit dbef4a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lightningd/pay.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit dbef4a1

Please sign in to comment.