no-else-return

This commit is contained in:
Jordan Eldredge 2019-08-18 14:23:01 -07:00
parent 995e16143d
commit 0f7bf53868
2 changed files with 1 additions and 3 deletions

View file

@ -6,7 +6,6 @@
"no-nested-ternary": "off",
"react-hooks/rules-of-hooks": "off",
"react-hooks/exhaustive-deps": "off",
"no-else-return": "off",
"import/no-extraneous-dependencies": "off"
}
}

View file

@ -118,9 +118,8 @@ export function findParentNodeOfType(node, type) {
export function findParentOrCurrentNodeOfType(node, type) {
if (type.has(node.name)) {
return node;
} else {
return findParentNodeOfType(node, type);
}
return findParentNodeOfType(node, type);
}
export function findDescendantByTypeAndId(node, type, id) {