Skip to content

Commit 63f0890

Browse files
author
unknown
committed
Fixed the problem with empty statements being commented out
1 parent 1828a36 commit 63f0890

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

forward_engineering/utils/general.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ module.exports = _ => {
9292
};
9393

9494
const commentIfDeactivated = (statement, { isActivated, isPartOfLine, inlineComment = '--' }) => {
95+
if (!statement) {
96+
return '';
97+
}
9598
if (isActivated !== false) {
9699
return statement;
97100
}

0 commit comments

Comments
 (0)