Skip to content

Commit

Permalink
Version increased to 1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
qwertie committed Mar 1, 2022
1 parent 2a7c8d4 commit eb16cc1
Show file tree
Hide file tree
Showing 4 changed files with 7,967 additions and 6 deletions.
2 changes: 1 addition & 1 deletion b+tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,7 @@ var BTree = /** @class */ (function () {
return typeof r === "number" ? r : r.break;
}
finally {
var isShared = undefined;
var isShared = void 0;
while (root.keys.length <= 1 && !root.isLeaf) {
isShared || (isShared = root.isShared);
this._root = root = root.keys.length === 0 ? EmptyLeaf :
Expand Down
2 changes: 1 addition & 1 deletion b+tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1094,7 +1094,7 @@ export default class BTree<K=any, V=any> implements ISortedMapF<K,V>, ISortedMap
var r = root.forRange(low, high, includeHigh, true, this, initialCounter || 0, onFound);
return typeof r === "number" ? r : r.break!;
} finally {
let isShared: undefined | true = undefined;
let isShared;
while (root.keys.length <= 1 && !root.isLeaf) {
isShared ||= root.isShared;
this._root = root = root.keys.length === 0 ? EmptyLeaf :
Expand Down
Loading

0 comments on commit eb16cc1

Please sign in to comment.