Skip to content

Commit 7669b7a

Browse files
fix: Fixes #537 for CPU
1 parent ed1cd94 commit 7669b7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/cpu/function-node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ class CPUFunctionNode extends FunctionNode {
357357

358358
if (ifNode.alternate) {
359359
retArr.push('else ');
360-
if (ifNode.alternate.type === 'BlockStatement') {
360+
if (ifNode.alternate.type === 'BlockStatement' || ifNode.alternate.type === 'IfStatement') {
361361
this.astGeneric(ifNode.alternate, retArr);
362362
} else {
363363
retArr.push(' {\n');

0 commit comments

Comments
 (0)