summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--prism/prism.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/prism/prism.c b/prism/prism.c
index a4d314453a..285319ca91 100644
--- a/prism/prism.c
+++ b/prism/prism.c
@@ -579,7 +579,7 @@ pm_parser_scope_push(pm_parser_t *parser, bool closed) {
.locals = { 0 },
.parameters = PM_SCOPE_PARAMETERS_NONE,
.implicit_parameters = { 0 },
- .shareable_constant = (closed || parser->current_scope == NULL) ? PM_SCOPE_SHAREABLE_CONSTANT_NONE : parser->current_scope->shareable_constant,
+ .shareable_constant = parser->current_scope == NULL ? PM_SCOPE_SHAREABLE_CONSTANT_NONE : parser->current_scope->shareable_constant,
.closed = closed
};