Skip to content

Commit

Permalink
call prepareGitHubLink after the early return
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaucasau committed Mar 5, 2024
1 parent 48ac19f commit d83787c
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions scripts/lib/api/processHtml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,24 +293,10 @@ export function processMembersAndSetMeta(
.toArray()
.map((child) => {
const $child = $(child);
const githubSourceLink = prepareGitHubLink(
$child,
apiType === "method",
);

if (child.name !== "dt" || !apiType) {
return `<div>${$child.html()}</div>`;
}
return processMember(
$,
$main,
$child,
$dl,
priorApiType,
apiType,
id,
githubSourceLink,
);
return processMember($, $main, $child, $dl, priorApiType, apiType, id);
})
.join("\n");

Expand All @@ -326,8 +312,9 @@ function processMember(
priorApiType: string | undefined,
apiType: string,
id: string,
githubSourceLink: string,
) {
const githubSourceLink = prepareGitHubLink($child, apiType === "method");

findByText($, $main, "em.property", apiType).remove();

if (apiType == "class") {
Expand Down

0 comments on commit d83787c

Please sign in to comment.