Skip to content

Commit 328a7b1

Browse files
author
Alex Terentiev
committed
remove build warnings
1 parent 7602e37 commit 328a7b1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/controls/treeView/TreeView.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,17 @@ export class TreeView extends React.Component<ITreeViewProps, ITreeViewState> {
4646
const alreadyExistInNodesToExpand = this.nodesToExpand.some((node) => node === key);
4747

4848
if (key === target) {
49-
!alreadyExistInNodesToExpand && this.nodesToExpand.push(key);
49+
if (!alreadyExistInNodesToExpand) {
50+
this.nodesToExpand.push(key);
51+
}
5052
result = key;
5153
return true;
5254
}
5355
let temp = this.pathTo(children, target);
5456
if (temp) {
55-
!alreadyExistInNodesToExpand && this.nodesToExpand.push(key);
57+
if (!alreadyExistInNodesToExpand) {
58+
this.nodesToExpand.push(key);
59+
}
5660
result = key + '.' + temp;
5761
return true;
5862
}

0 commit comments

Comments
 (0)