diff --git a/src/util/cache-predicate.ts b/src/util/cache-predicate.ts index 7c6152a..1fc5758 100644 --- a/src/util/cache-predicate.ts +++ b/src/util/cache-predicate.ts @@ -5,9 +5,9 @@ import type { CachePredicate } from './types'; export async function testCachePredicate( response: CacheAxiosResponse, predicate: CachePredicate -) { +): Promise { if (typeof predicate === 'function') { - return await predicate(response); + return predicate(response); } const { statusCheck, responseMatch, containsHeaders } = predicate;