Skip to content

Commit b40c885

Browse files
FisherXZclaude
andcommitted
simplify: use direct envVars assignment in connectSandbox body
Matches the create-time pattern (envVars: opts?.envs) — openapi-fetch strips undefined automatically so the conditional spread was unnecessary. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent b1d126e commit b40c885

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/js-sdk/src/sandbox/sandboxApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ export class SandboxApi {
850850
},
851851
body: {
852852
timeout: timeoutToSeconds(timeoutMs),
853-
...(opts?.envs !== undefined ? { envVars: opts.envs } : {}),
853+
envVars: opts?.envs,
854854
},
855855
signal: config.getSignal(opts?.requestTimeoutMs),
856856
})

0 commit comments

Comments
 (0)