Skip to content

Commit

Permalink
Merge db59bd7 into 301e5aa
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed Jan 18, 2019
2 parents 301e5aa + db59bd7 commit 019bd61
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/type/validate.js
Expand Up @@ -550,11 +550,9 @@ function getAllSubNodes<T: ASTNode, K: ASTNode, L: ASTNode>(
): $ReadOnlyArray<L> {
let result = [];
for (const astNode of getAllNodes(object)) {
if (astNode) {
const subNodes = getter(astNode);
if (subNodes) {
result = result.concat(subNodes);
}
const subNodes = getter(astNode);
if (subNodes) {
result = result.concat(subNodes);
}
}
return result;
Expand Down

0 comments on commit 019bd61

Please sign in to comment.