Skip to content

Commit 949b4ea

Browse files
committed
Fixed Issue
1 parent 06e4f74 commit 949b4ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/prometheus/visitast.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ function visitStatement(statement, previsit, postvisit, data)
108108
statement.body = visitBlock(statement.body, previsit, postvisit, data, true);
109109
data.functionData = parentFunctionData;
110110
elseif(statement.kind == AstKind.DoStatement) then
111-
statement.body = visitBlock(statement.body, previsit, postvisit, data, true);
111+
statement.body = visitBlock(statement.body, previsit, postvisit, data, false);
112112
elseif(statement.kind == AstKind.WhileStatement) then
113113
statement.condition = visitExpression(statement.condition, previsit, postvisit, data);
114114
statement.body = visitBlock(statement.body, previsit, postvisit, data, false);

0 commit comments

Comments
 (0)