Skip to content

Commit

Permalink
fixing linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredwray committed Oct 25, 2024
1 parent b98ad56 commit 1ee75d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/keyv/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -354,14 +354,14 @@ export class Keyv<GenericValue = any> extends EventManager {

const results = await Promise.allSettled(promises);
const returnResult = results.every(x => (x as PromiseFulfilledResult<any>).value === true);
this.hooks.trigger(KeyvHooks.POST_DELETE, {key: keyPrefixed, value:returnResult});
this.hooks.trigger(KeyvHooks.POST_DELETE, {key: keyPrefixed, value: returnResult});
return returnResult;
}

const keyPrefixed = this._getKeyPrefix(key);
this.hooks.trigger(KeyvHooks.PRE_DELETE, {key: keyPrefixed});
const result = await store.delete(keyPrefixed);
this.hooks.trigger(KeyvHooks.POST_DELETE, {key: keyPrefixed, value:result});
this.hooks.trigger(KeyvHooks.POST_DELETE, {key: keyPrefixed, value: result});
this.stats.delete();
return result;
}
Expand Down

0 comments on commit 1ee75d8

Please sign in to comment.