mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Remove unnecessary condition
`no_blockarg` is called for non-null `node` only.
This commit is contained in:
parent
d417c1ddc5
commit
bb12aa4d15
1 changed files with 1 additions and 1 deletions
2
parse.y
2
parse.y
|
@ -11930,7 +11930,7 @@ logop(struct parser_params *p, ID id, NODE *left, NODE *right,
|
||||||
static void
|
static void
|
||||||
no_blockarg(struct parser_params *p, NODE *node)
|
no_blockarg(struct parser_params *p, NODE *node)
|
||||||
{
|
{
|
||||||
if (node && nd_type_p(node, NODE_BLOCK_PASS)) {
|
if (nd_type_p(node, NODE_BLOCK_PASS)) {
|
||||||
compile_error(p, "block argument should not be given");
|
compile_error(p, "block argument should not be given");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue