Remove unused Bun.peek

This commit is contained in:
SukkaW
2024-06-03 11:56:11 +08:00
parent 6e32af4dc8
commit 7167be852f
8 changed files with 8 additions and 24 deletions

View File

@@ -19,10 +19,7 @@ export const getAppleCdnDomainsPromise = createMemoizedPromise(() => fsFetchCach
export const buildAppleCdn = task(import.meta.path, async (span) => {
const promise = getAppleCdnDomainsPromise();
const peeked = Bun.peek(promise);
const res: string[] = peeked === promise
? await span.traceChildPromise('get apple cdn domains', promise)
: (peeked as string[]);
const res: string[] = await span.traceChildPromise('get apple cdn domains', promise);
const description = [
...SHARED_DESCRIPTION,