Skip to content

Commit

Permalink
removing unicorn/no-typeof-undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredwray committed Jan 4, 2025
1 parent 7afbc2d commit 907259f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion packages/keyv/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
},
"xo": {
"rules": {
"unicorn/no-typeof-undefined": "off",
"unicorn/prefer-event-target": "off",
"import/no-extraneous-dependencies": "off",
"import/extensions": "off",
Expand Down
2 changes: 1 addition & 1 deletion packages/keyv/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ export class Keyv<GenericValue = any> extends EventManager {
async set<Value = GenericValue>(key: string, value: Value, ttl?: number): Promise<boolean> {
this.hooks.trigger(KeyvHooks.PRE_SET, {key, value, ttl});
const keyPrefixed = this._getKeyPrefix(key);
if (typeof ttl === 'undefined') {
if (ttl === undefined) {
ttl = this._ttl;
}

Expand Down

0 comments on commit 907259f

Please sign in to comment.