Skip to content

Commit

Permalink
Supporting comment headers
Browse files Browse the repository at this point in the history
  • Loading branch information
charliesantos committed Sep 4, 2019
1 parent 3d0d395 commit 889de06
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
5 changes: 1 addition & 4 deletions dist/lib/converter/factories/comment.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions src/lib/converter/factories/comment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,6 @@ export function getRawComment(node: ts.Node): string | undefined {
if (comments.length) {
let comment: ts.CommentRange;
if (node.kind === ts.SyntaxKind.SourceFile) {
if (comments.length === 1) {
return;
}
comment = comments[0];
} else {
comment = comments[comments.length - 1];
Expand Down

0 comments on commit 889de06

Please sign in to comment.