Skip to content

Commit

Permalink
ts-morph issue
Browse files Browse the repository at this point in the history
  • Loading branch information
cancerberoSgx committed Nov 20, 2019
1 parent f8cc5eb commit a98d2c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ts-simple-ast-extra/src/refactor/impl/trailingSemicolons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ export function addTrailingSemicolons(f: SourceFile) {
// add semicolon only if there is not already one
return
}
else if (lt.getText().trim().endsWith('}')) {
//@ts-ignore TODO: should be else if. ts-morph issue?
else if (lt.getText().trim().endsWith('}')) {
// is block-like declaration - then it doesn't need
return
}
Expand Down

0 comments on commit a98d2c7

Please sign in to comment.