diff options
author | Stanislav <62983943+stanislavstrelnikov@users.noreply.github.com> | 2020-07-07 04:45:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-06 21:45:39 -0400 |
commit | 158ae0bfe900d2bac3076390c4fe3d2b54d94fe5 (patch) | |
tree | 209e4b5682e2a899041767c49428e34329e48084 /cli/js/web/fetch | |
parent | ab4c574f5202f607ceb6068f56b3cc8aed1bbbaf (diff) |
clean up code in cli/js (#6611)
Diffstat (limited to 'cli/js/web/fetch')
-rw-r--r-- | cli/js/web/fetch/multipart.ts | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/cli/js/web/fetch/multipart.ts b/cli/js/web/fetch/multipart.ts index 654d4a0ea..a632d8600 100644 --- a/cli/js/web/fetch/multipart.ts +++ b/cli/js/web/fetch/multipart.ts @@ -19,12 +19,9 @@ interface MultipartHeaders { export class MultipartBuilder { readonly boundary: string; - readonly formData: FormData; - readonly writer: Buffer; - constructor(formData: FormData, boundary?: string) { + readonly writer = new Buffer(); + constructor(readonly formData: FormData, boundary?: string) { this.boundary = boundary ?? this.#createBoundary(); - this.formData = formData; - this.writer = new Buffer(); } getContentType(): string { |