Skip to content

Commit 788f0bc

Browse files
committed
1 parent 686c8a9 commit 788f0bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,11 @@
128128
if (!current) {
129129
return;
130130
}
131+
this._postorder(current._left, callback);
132+
this._postorder(current._right, callback);
131133
if (typeof callback === 'function') {
132134
callback(current);
133135
}
134-
this._postorder(current._left, callback);
135-
this._postorder(current._right, callback);
136136
};
137137

138138
/**

0 commit comments

Comments
 (0)