Skip to content

Commit

Permalink
remove binding
Browse files Browse the repository at this point in the history
  • Loading branch information
joscha committed Sep 29, 2024
1 parent 9f6eaff commit d6692e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -1280,7 +1280,7 @@ function generateDefaultIndexer(types) {
}
bucketIndices[bucket] = index;
}
}, this);
});
return (val) => {
let index = bucketIndices[getValueBucket(val)];
if (dynamicBranches.length) {
Expand Down Expand Up @@ -1319,7 +1319,7 @@ class UnwrappedUnionType extends UnionType {
}
this._getIndex = _projectionFn
? generateProjectionIndexer(_projectionFn)
: generateDefaultIndexer.bind(this)(this.types);
: generateDefaultIndexer(this.types);

Object.freeze(this);
}
Expand Down

0 comments on commit d6692e1

Please sign in to comment.