mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Remove unused Bun.peek
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user