Skip to content

Commit

Permalink
chore: Add util to find comments without only line-breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
bennycode committed Nov 21, 2024
1 parent 2a789f6 commit 5f3c3e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/NodeUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export class NodeUtil {
const pureStatement = input.getText();
const comment = statementWithComment.replace(pureStatement, '');
const statement = statementWithComment.replace(comment, '');
const hasNoText = this.hasOnlyLineBreaks(comment) ? true : false;
const hasNoText = !!this.hasOnlyLineBreaks(comment);
return {
comment,
hasNoText,
Expand Down

0 comments on commit 5f3c3e6

Please sign in to comment.