Skip to content

Commit f246393

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent e20bb79 commit f246393

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

sphinx_js/js/convertTopLevel.ts

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -253,16 +253,18 @@ class PathComputer implements ReflectionVisitor {
253253
* @returns
254254
*/
255255
function renderCommentContent(content: CommentDisplayPart[]): Description {
256-
return content.map((x) => {
257-
if (x.kind === "code") {
258-
return { type: "code", code: x.text };
259-
}
260-
if (x.kind === "text") {
261-
return { type: "text", text: x.text };
262-
}
263-
console.warn(`Not implemented:`, x);
264-
return null;
265-
}).filter(Boolean) as DescriptionItem[];
256+
return content
257+
.map((x) => {
258+
if (x.kind === "code") {
259+
return { type: "code", code: x.text };
260+
}
261+
if (x.kind === "text") {
262+
return { type: "text", text: x.text };
263+
}
264+
console.warn(`Not implemented:`, x);
265+
return null;
266+
})
267+
.filter(Boolean) as DescriptionItem[];
266268
}
267269

268270
function renderCommentSummary(c: Comment | undefined): Description {

0 commit comments

Comments
 (0)