Skip to content

Commit

Permalink
fix: remove useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-records committed Jul 27, 2024
1 parent e234db2 commit 52f050d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/search/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ db.version(1).stores({
expires: 'key, value',
});

async function saveData(maxAge, expireKey, indexKey) {
async function saveData(maxAge, expireKey) {
INDEXES = Object.values(INDEXES).flatMap(innerData =>
Object.values(innerData),
);
Expand Down Expand Up @@ -324,7 +324,7 @@ export async function init(config, vm) {
indexKey,
);
if (len === ++count) {
await saveData(config.maxAge, expireKey, indexKey);
await saveData(config.maxAge, expireKey);
}
},
);
Expand Down

0 comments on commit 52f050d

Please sign in to comment.