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 authored and paullewis committed Apr 30, 2020
1 parent 530d6c7 commit 7732d4c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
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
4 changes: 2 additions & 2 deletions utils/doclint/check_public_api/JSBuilder.js
Expand Up @@ -189,8 +189,8 @@ function checkSources(sources) {
* @return {boolean}
*/
function symbolHasPrivateModifier(symbol) {
const modifiers = symbol.valueDeclaration ? symbol.valueDeclaration.modifiers || [] : [];
return modifiers.some(modifier => modifier.kind && modifier.kind === ts.SyntaxKind.PrivateKeyword);
const modifiers = symbol.valueDeclaration && symbol.valueDeclaration.modifiers || [];
return modifiers.some(modifier => modifier.kind === ts.SyntaxKind.PrivateKeyword);
}

/**
Expand Down

0 comments on commit 7732d4c

Please sign in to comment.