Skip to content

Commit 8b32f8f

Browse files
authored
Revert "fix: issue 228 (#229)"
This reverts commit 6e9a320.
1 parent 6e9a320 commit 8b32f8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/source/pl/core/ast/ast_node_array_variable_decl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ namespace pl::core::ast {
367367

368368
auto ctrlFlow = evaluator->getCurrentControlFlowStatement();
369369
evaluator->setCurrentControlFlowStatement(ControlFlowStatement::None);
370-
if (ctrlFlow == ControlFlowStatement::Break || ctrlFlow == ControlFlowStatement::Return)
370+
if (ctrlFlow == ControlFlowStatement::Break)
371371
break;
372372
else if (ctrlFlow == ControlFlowStatement::Continue) {
373373
discardEntries(patternCount);
@@ -418,7 +418,7 @@ namespace pl::core::ast {
418418

419419
auto ctrlFlow = evaluator->getCurrentControlFlowStatement();
420420
evaluator->setCurrentControlFlowStatement(ControlFlowStatement::None);
421-
if (ctrlFlow == ControlFlowStatement::Break || ctrlFlow == ControlFlowStatement::Return)
421+
if (ctrlFlow == ControlFlowStatement::Break)
422422
break;
423423
else if (ctrlFlow == ControlFlowStatement::Continue) {
424424
discardEntries(1);

0 commit comments

Comments
 (0)