Skip to content

Commit

Permalink
Address no-loop-func warning
Browse files Browse the repository at this point in the history
  • Loading branch information
klebba committed Apr 9, 2024
1 parent cafd1c2 commit 61b4965
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -1325,7 +1325,8 @@ class Template {
const find = path => {
let node = content;
for (const index of path) {
node = Template.#setIfMissing(lookup, node, () => node.childNodes)[index];
const ref = node;
node = Template.#setIfMissing(lookup, node, () => ref.childNodes)[index];
}
return node;
};
Expand Down

0 comments on commit 61b4965

Please sign in to comment.