fix lint
This commit is contained in:
parent
598407280c
commit
fd58727d27
|
|
@ -189,9 +189,8 @@ export class APIRequestContext extends ChannelOwner<channels.APIRequestContextCh
|
||||||
// Convert file-like values to ServerFilePayload structs.
|
// Convert file-like values to ServerFilePayload structs.
|
||||||
for (const [name, value] of Object.entries(options.multipart)) {
|
for (const [name, value] of Object.entries(options.multipart)) {
|
||||||
if (Array.isArray(value)) {
|
if (Array.isArray(value)) {
|
||||||
for (const item of value) {
|
for (const item of value)
|
||||||
multipartData.push(await toFormField(name, item));
|
multipartData.push(await toFormField(name, item));
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
multipartData.push(await toFormField(name, value));
|
multipartData.push(await toFormField(name, value));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue