Skip to content

Commit ae1b617

Browse files
committed
PR feedback
1 parent 50440f2 commit ae1b617

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎libraries/api-extractor/src/DocElementParser.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import ResolvedApiItem from './ResolvedApiItem';
99
export default class DocElementParser {
1010
/**
1111
* Used to validate the display text for an \@link tag. The display text can contain any
12-
* characters except for certain reserved AEDoc delimiters: "@", "|", "{", "}".
12+
* characters except for certain AEDoc delimiters: "@", "|", "{", "}".
1313
* This RegExp matches the first bad character.
1414
* Example: "Microsoft's {spec}" --> "{"
1515
*/
@@ -152,7 +152,7 @@ export default class DocElementParser {
152152
return undefined;
153153
}
154154

155-
const addressPart: string = pipeSplitContent.length > 0 ? pipeSplitContent[0] : '';
155+
const addressPart: string = pipeSplitContent[0];
156156
const displayTextPart: string = pipeSplitContent.length > 1 ? pipeSplitContent[1] : '';
157157

158158
// Try to guess if the tokenContent is a link or API definition reference

0 commit comments

Comments
 (0)