Skip to content

Commit b1a1094

Browse files
authored
Merge pull request #64 from ArzamastsevVladyslav/hotfix/HCK-3655-table-comments
Fixed the problem with empty statements being commented out
2 parents 1828a36 + 63f0890 commit b1a1094

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)