Skip to content

Commit 6c76f52

Browse files
committed
refactor: remove unused variable from scope computation
1 parent 7a83ef0 commit 6c76f52

2 files changed

Lines changed: 4 additions & 8 deletions

File tree

dist/fuse.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1862,7 +1862,7 @@
18621862
sortFn = _this$options.sortFn,
18631863
ignoreFieldNorm = _this$options.ignoreFieldNorm;
18641864
var results = isString(query) ? isString(this._docs[0]) ? this._searchStringList(query) : this._searchObjectList(query) : this._searchLogical(query);
1865-
computeScore$1(results, this._keyStore, {
1865+
computeScore$1(results, {
18661866
ignoreFieldNorm: ignoreFieldNorm
18671867
});
18681868

@@ -2124,7 +2124,7 @@
21242124
return Fuse;
21252125
}(); // Practical scoring function
21262126

2127-
function computeScore$1(results, keyStore, _ref8) {
2127+
function computeScore$1(results, _ref8) {
21282128
var _ref8$ignoreFieldNorm = _ref8.ignoreFieldNorm,
21292129
ignoreFieldNorm = _ref8$ignoreFieldNorm === void 0 ? Config.ignoreFieldNorm : _ref8$ignoreFieldNorm;
21302130
results.forEach(function (result) {

src/core/index.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export default class Fuse {
8686
: this._searchObjectList(query)
8787
: this._searchLogical(query)
8888

89-
computeScore(results, this._keyStore, { ignoreFieldNorm })
89+
computeScore(results, { ignoreFieldNorm })
9090

9191
if (shouldSort) {
9292
results.sort(sortFn)
@@ -287,11 +287,7 @@ export default class Fuse {
287287
}
288288

289289
// Practical scoring function
290-
function computeScore(
291-
results,
292-
keyStore,
293-
{ ignoreFieldNorm = Config.ignoreFieldNorm }
294-
) {
290+
function computeScore(results, { ignoreFieldNorm = Config.ignoreFieldNorm }) {
295291
results.forEach((result) => {
296292
let totalScore = 1
297293

0 commit comments

Comments
 (0)