Skip to content

Commit abfe7a2

Browse files
committed
Remove assignment in condition
1 parent f7fa7c5 commit abfe7a2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/util/Components.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,13 @@ class Components {
9696
* @param {Object} props Additional properties to add to the component.
9797
*/
9898
set(node, props) {
99-
let component;
100-
while (!(component = this._list[getId(node)])) {
99+
let component = this._list[getId(node)];
100+
while (!component) {
101101
node = node.parent;
102102
if (!node) {
103103
return;
104104
}
105+
component = this._list[getId(node)];
105106
}
106107

107108
Object.assign(

0 commit comments

Comments
 (0)