Skip to content

Commit

Permalink
fix: comments may be undefined
Browse files Browse the repository at this point in the history
fixed #6
  • Loading branch information
KeJunMao committed Jan 27, 2024
1 parent ff20882 commit 886e6e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function parseComment(line: string) {

return {
type: comment?.type,
content: content?.trim(),
content: content?.trim() ?? '',
}
}

Expand Down

0 comments on commit 886e6e9

Please sign in to comment.