mirror of
https://github.com/captbaritone/webamp.git
synced 2026-08-03 07:23:55 +00:00
no-else-return
This commit is contained in:
parent
995e16143d
commit
0f7bf53868
2 changed files with 1 additions and 3 deletions
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue