Skip to content

Commit

Permalink
Fix compiler error with non-strict build
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit0 committed Jun 1, 2024
1 parent cda52ba commit 06c7514
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
sort - documents-first, documents-last, alphabetical-ignoring-documents
searchInDocuments
- #2147, add `referencedProperties` to a `ReferenceType` which is a set of name/comment pairs
- Detect relative links in `<a>` and `<img>`

### Breaking Changes

Expand Down
3 changes: 2 additions & 1 deletion src/lib/output/themes/default/DefaultThemeRenderContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ export class DefaultThemeRenderContext {
markdown = (
md: readonly CommentDisplayPart[] | NeverIfInternal<string | undefined>,
) => {
return this.theme.markedPlugin.parseMarkdown(md, this.page, this);
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
return this.theme.markedPlugin.parseMarkdown(md || "", this.page, this);
};

getNavigation = () => this.theme.getNavigation(this.page.project);
Expand Down

0 comments on commit 06c7514

Please sign in to comment.