Navigation Menu

Skip to content

Commit

Permalink
chore: fix doclint issues (#5784)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasbynens committed Apr 30, 2020
1 parent 32c8c69 commit 541281b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Expand Up @@ -4,6 +4,7 @@
* [Getting Code](#getting-code)
* [Code reviews](#code-reviews)
* [Code Style](#code-style)
* [TypeScript guidelines](#typescript-guidelines)
* [API guidelines](#api-guidelines)
* [Commit Messages](#commit-messages)
* [Writing Documentation](#writing-documentation)
Expand Down
2 changes: 1 addition & 1 deletion utils/doclint/check_public_api/JSBuilder.js
Expand Up @@ -189,7 +189,7 @@ function checkSources(sources) {
* @return {boolean}
*/
function symbolHasPrivateModifier(symbol) {
const modifiers = symbol.valueDeclaration.modifiers || [];
const modifiers = symbol.valueDeclaration && symbol.valueDeclaration.modifiers || [];
return modifiers.some(modifier => modifier.kind === ts.SyntaxKind.PrivateKeyword);
}

Expand Down

0 comments on commit 541281b

Please sign in to comment.