Skip to content

Commit ad9748d

Browse files
committed
close #12
1 parent 171b407 commit ad9748d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

plugins/document.require-by/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,12 @@ export default class RequireByPlugin extends Plugin implements PluginInterface {
105105
'<a href="' + this.url(type) + '" title="' +
106106
type.name + ' - ' + striptags(type.description).replace(/"/gi, '&quot;') +
107107
'">' +
108-
type.name + '<em>' + type.description + '</em>' +
108+
type.name + '<em>' + (type.description || '') + '</em>' +
109109
'</a>' +
110110
'<li>';
111111
}
112112

113113
getDocuments(buildForType?: string): DocumentSectionInterface[] {
114-
115114
if (!buildForType)
116115
return [];
117116

0 commit comments

Comments
 (0)