Skip to content

Commit b62d9a4

Browse files
committed
Clean up in binary search tree constructor.
1 parent b7e27b2 commit b62d9a4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/data-structures/tree/binary-search-tree/BinarySearchTree.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ export default class BinarySearchTree {
55
* @param {function} [nodeValueCompareFunction]
66
*/
77
constructor(nodeValueCompareFunction) {
8-
this.nodeValueCompareFunction = nodeValueCompareFunction;
9-
this.root = new BinarySearchTreeNode(null, this.nodeValueCompareFunction);
8+
this.root = new BinarySearchTreeNode(null, nodeValueCompareFunction);
109
}
1110

1211
/**

0 commit comments

Comments
 (0)