Skip to content

Commit

Permalink
Update packages/kbn-docs-utils/src/api_docs/build_api_declarations/ut…
Browse files Browse the repository at this point in the history
…ils.ts

Co-authored-by: Spencer <[email protected]>
  • Loading branch information
stacey-gammon and Spencer authored Feb 24, 2021
1 parent 279956d commit a2b63b7
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,7 @@ export function isPrivate(node: ParameterDeclaration | ClassMemberTypes): boolea
* Change the absolute path into a relative one.
*/
function getRelativePath(fullPath: string): string {
const index = fullPath.indexOf(REPO_ROOT);
if (index >= 0) {
return fullPath.slice(REPO_ROOT.length);
} else {
return fullPath;
}
return Path.relative(REPO_ROOT, fullPath)
}

export function getSourceForNode(node: Node): SourceLink {
Expand Down

0 comments on commit a2b63b7

Please sign in to comment.