Skip to content

Commit

Permalink
style: format
Browse files Browse the repository at this point in the history
  • Loading branch information
PeachScript committed Dec 15, 2023
1 parent 7e4abde commit 699bb45
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ export function getCache(ns: string): (typeof caches)['0'] {
const deferrer = () => Promise.resolve();
return { set: deferrer, get: deferrer, setSync() {}, getSync() {} } as any;
}
return (caches[ns] ??= Cache({ basePath: path.resolve(process.env.FATHER_CACHE_DIR || CACHE_PATH, ns) }));
return (caches[ns] ??= Cache({
basePath: path.resolve(process.env.FATHER_CACHE_DIR || CACHE_PATH, ns),
}));
}

/**
Expand Down

0 comments on commit 699bb45

Please sign in to comment.