Skip to content

Commit e625bca

Browse files
committed
fix formatting
1 parent c031599 commit e625bca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Multipart.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,8 @@ export class Multipart implements Part {
184184
const parts: Component[] = [];
185185

186186
for (const [key, value] of formData.entries()) {
187-
if (typeof value === "string") parts.push(new Component({"Content-Disposition": `form-data; name="${key}"`}, new TextEncoder().encode(value))); else {
187+
if (typeof value === "string") parts.push(new Component({"Content-Disposition": `form-data; name="${key}"`}, new TextEncoder().encode(value)));
188+
else {
188189
const part = await Component.file(value);
189190
part.headers.set("Content-Disposition", `form-data; name="${key}"; filename="${value.name}"`);
190191
parts.push(part);

0 commit comments

Comments
 (0)