Skip to content

Commit

Permalink
feat: remove default "@returns" for constructors (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
kimlimjustin committed Aug 18, 2021
1 parent c00e4fd commit 6729723
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ const generateJSDoc = () => {
})
.join('');
// return value
text += `* @returns {any}\r`;
if (!/constructor/i.test(selectionText)) {
text += `* @returns {any}\r`;
}
text += `*/\r`;

const whitespace = selectionLine.firstNonWhitespaceCharacterIndex;
Expand Down

0 comments on commit 6729723

Please sign in to comment.