зеркало из https://github.com/github/ruby.git
Remove unnecessary condition
`no_blockarg` is called for non-null `node` only.
This commit is contained in:
Родитель
d417c1ddc5
Коммит
bb12aa4d15
2
parse.y
2
parse.y
|
@ -11930,7 +11930,7 @@ logop(struct parser_params *p, ID id, NODE *left, NODE *right,
|
|||
static void
|
||||
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");
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче