mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-28 17:41:54 +08:00
Perf: optimiaztions, avoid spread operator
This commit is contained in:
@@ -18,8 +18,7 @@ export const getAppleCdnDomainsPromise = createMemoizedPromise(() => fsFetchCach
|
||||
));
|
||||
|
||||
export const buildAppleCdn = task(import.meta.main, import.meta.path)(async (span) => {
|
||||
const promise = getAppleCdnDomainsPromise();
|
||||
const res: string[] = await span.traceChildPromise('get apple cdn domains', promise);
|
||||
const res: string[] = await span.traceChildPromise('get apple cdn domains', getAppleCdnDomainsPromise());
|
||||
|
||||
const description = [
|
||||
...SHARED_DESCRIPTION,
|
||||
|
||||
Reference in New Issue
Block a user