Skip to content

Commit

Permalink
chore: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Cadienvan committed Sep 26, 2024
1 parent b2a0016 commit a808d77
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ describe('Higher-Order Function', () => {
return 'custom-key';
},
events: {
onCacheSet: ({key}) => {
onCacheSet: ({ key }) => {
expect(key).toBe('custom-key');
}
}
Expand Down
4 changes: 3 additions & 1 deletion src/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ export function cacheCandidate<T extends (...args: any[]) => Promise<any>>(
return function cacheCandidateWrapper(...args: Parameters<T>): ReturnType<T> {
return letsCandidate({
options,
key: _options.customKeyFunction ? _options.customKeyFunction(args) : getDataCacheKey([uniqueIdentifier, JSON.stringify(args)]),
key: _options.customKeyFunction
? _options.customKeyFunction(args)
: getDataCacheKey([uniqueIdentifier, JSON.stringify(args)]),
timeoutCache,
runningQueryCache,
timeframeCache,
Expand Down

0 comments on commit a808d77

Please sign in to comment.