diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2020-05-27 00:02:16 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-26 10:02:16 -0400 |
commit | 228f9c207f8320908325a553c96e465da08fc617 (patch) | |
tree | 54f2aba9f577d713dcbed5882ae7ae9e53c7baaf /cli/js/web/body.ts | |
parent | 24c36fd8625df6b276108109478a62b4661a0b3f (diff) |
Use ts-expect-error instead of ts-ignore. (#5869)
Diffstat (limited to 'cli/js/web/body.ts')
-rw-r--r-- | cli/js/web/body.ts | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/cli/js/web/body.ts b/cli/js/web/body.ts index 9c4997755..ffe3f0e59 100644 --- a/cli/js/web/body.ts +++ b/cli/js/web/body.ts @@ -100,7 +100,6 @@ export class Body implements domTypes.Body { } if (this._bodySource instanceof ReadableStreamImpl) { - // @ts-ignore this._stream = this._bodySource; } if (typeof this._bodySource === "string") { @@ -290,7 +289,6 @@ export class Body implements domTypes.Body { enc.encode(this._bodySource).buffer as ArrayBuffer ); } else if (this._bodySource instanceof ReadableStreamImpl) { - // @ts-ignore return bufferFromStream(this._bodySource.getReader()); } else if (this._bodySource instanceof FormData) { const enc = new TextEncoder(); |