Skip to content

Commit

Permalink
Merge pull request #745 from ericcrosson-bitgo/perf-remove-unneeded-n…
Browse files Browse the repository at this point in the history
…ullish-check

perf: remove unneeded nullish check
  • Loading branch information
bitgopatmcl authored Apr 23, 2024
2 parents a373d05 + 08412d5 commit 978327b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/openapi-generator/src/jsdoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ export function parseCommentBlock(comment: Block): JSDoc {
}
}

if (description !== undefined) {
description = description.trim();
}
description = description.trim();

return {
...(summary.length > 0 ? { summary } : {}),
Expand Down

0 comments on commit 978327b

Please sign in to comment.