Skip to content

Commit 1b34ce5

Browse files
committed
attempt to fix test
1 parent a663231 commit 1b34ce5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/node/src/client.ts.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ class Client {
201201
}
202202

203203
async chunkedUpload(method: string, url: URL, headers: Headers = {}, originalPayload: Payload = {}, onProgress: (progress: UploadProgress) => void) {
204-
const [fileParam, file] = Object.entries(originalPayload).find(([, value]) => value instanceof File) ?? [];
204+
const [fileParam, file] = Object.entries(originalPayload).find(([_, value]) => value instanceof File) ?? [];
205205

206206
if (!file) {
207207
throw new Error('File not found in payload');

templates/web/src/client.ts.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ class Client {
629629
}
630630

631631
async chunkedUpload(method: string, url: URL, headers: Headers = {}, originalPayload: Payload = {}, onProgress: (progress: UploadProgress) => void) {
632-
const [fileParam, file] = Object.entries(originalPayload).find(([, value]) => value instanceof File) ?? [];
632+
const [fileParam, file] = Object.entries(originalPayload).find(([_, value]) => value instanceof File) ?? [];
633633

634634
if (!file) {
635635
throw new Error('File not found in payload');

0 commit comments

Comments
 (0)