perf(browser-transfer): pass optional image-cdn operation inputs directly (R3-2)
The kernel already treats an undefined signal or timeoutMs as absent, so the conditional spreads around them were dead weight. file-transfer gzip: 54484 -> 54468 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
cad1d9c58c
commit
122a3a8b71
@@ -197,8 +197,8 @@ export function createImageCdnRuntime(
|
||||
timeoutMs?: number,
|
||||
): AbortableOperation => {
|
||||
const operation = createAbortableOperation({
|
||||
...(signal ? { signal } : {}),
|
||||
...(timeoutMs === undefined ? {} : { timeoutMs }),
|
||||
signal,
|
||||
timeoutMs,
|
||||
...capabilityVerificationTimers,
|
||||
});
|
||||
if (closed) operation.close();
|
||||
|
||||
Reference in New Issue
Block a user