Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

chore: resolve oxlint warnings across web and SDK (#34540)

agenthaulkdc83e8aa0997
diff --git a/sdks/nodejs-client/src/http/client.test.ts b/sdks/nodejs-client/src/http/client.test.ts
index af859801c6e..4dc20877828 100644
--- a/sdks/nodejs-client/src/http/client.test.ts
+++ b/sdks/nodejs-client/src/http/client.test.ts
@@ -39,7 +39,7 @@ const jsonResponse = (
...init,
headers: {
"content-type": "application/json",
- ...(init.headers ?? {}),
+ ...init.headers,
},
});
@@ -47,7 +47,7 @@ const textResponse = (body: string, init: ResponseInit = {}): Response =>
new Response(body, {
...init,
headers: {
- ...(init.headers ?? {}),
+ ...init.headers,
},
});
diff --git a/sdks/nodejs-client/src/index.test.ts b/sdks/nodejs-client/src/index.test.ts
index 8d56b994c46..b3233718912 100644
--- a/sdks/nodejs-client/src/index.test.ts
+++ b/sdks/nodejs-client/src/index.test.ts
@@ -14,7 +14,7 @@ const jsonResponse = (body: unknown, init: ResponseInit = {}): Response =>
...init,
headers: {
"content-type": "application/json",
- ...(init.headers ?? {}),
+ ...init.headers,
},
});