Skip to content

Commit 3c4dc3e

Browse files
committed
Remove unneeded local variable
`$5`, `brace_block` is no longer assigned in this action.
1 parent 11e5eba commit 3c4dc3e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

parse.y

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5285,11 +5285,10 @@ block_call : command do_block
52855285
}
52865286
| block_call call_op2 operation2 opt_paren_args brace_block
52875287
{
5288-
bool has_args = $5 != 0;
52895288
if (NODE_EMPTY_ARGS_P($4)) $4 = 0;
52905289
$$ = new_command_qcall(p, $2, $1, $3, $4, $5, &@3, &@$);
52915290
/*% ripper: command_call!($:1, $:2, $:3, $:4) %*/
5292-
if (has_args) {
5291+
if ($5) {
52935292
/*% ripper: method_add_block!($:$, $:5) %*/
52945293
}
52955294
}

0 commit comments

Comments
 (0)