fix(copilot-sdk): simplify session variable declaration
This commit is contained in:
parent
c98175fcc0
commit
064b9ba805
@ -103,9 +103,7 @@ export async function runCopilotSdkAgent(params: {
|
|||||||
try {
|
try {
|
||||||
await client.start();
|
await client.start();
|
||||||
|
|
||||||
let session:
|
let session: Awaited<ReturnType<CopilotClient["createSession"]>>;
|
||||||
| Awaited<ReturnType<CopilotClient["createSession"]>>
|
|
||||||
| Awaited<ReturnType<CopilotClient["resumeSession"]>>;
|
|
||||||
|
|
||||||
if (params.cliSessionId) {
|
if (params.cliSessionId) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user