Skip to content

Commit ddaa983

Browse files
committed
fix, return should be break instead
1 parent 0aa3bfe commit ddaa983

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/slangPrinter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function ignoreComments(path: AstPath<StrictAstNode>): void {
4848
if (typeof childNode === 'object') {
4949
if (Array.isArray(childNode)) {
5050
path.each(ignoreComments, key);
51-
return;
51+
break;
5252
}
5353
path.call(ignoreComments, key);
5454
}

0 commit comments

Comments
 (0)