summaryrefslogtreecommitdiff
path: root/cli/js/web/streams/writable_stream.ts
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2020-07-14 15:24:17 -0400
committerGitHub <noreply@github.com>2020-07-14 15:24:17 -0400
commitcde4dbb35132848ffece59ef9cfaccff32347124 (patch)
treecc7830968c6decde704c8cfb83c9185193dc698f /cli/js/web/streams/writable_stream.ts
parent9eca71caa1674c31f9cc5d4e86c03f10b59e0a00 (diff)
Use dprint for internal formatting (#6682)
Diffstat (limited to 'cli/js/web/streams/writable_stream.ts')
-rw-r--r--cli/js/web/streams/writable_stream.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/cli/js/web/streams/writable_stream.ts b/cli/js/web/streams/writable_stream.ts
index 2dea5311b..94bedb941 100644
--- a/cli/js/web/streams/writable_stream.ts
+++ b/cli/js/web/streams/writable_stream.ts
@@ -36,7 +36,7 @@ export class WritableStreamImpl<W = any> implements WritableStream<W> {
constructor(
underlyingSink: UnderlyingSink = {},
- strategy: QueuingStrategy = {}
+ strategy: QueuingStrategy = {},
) {
initializeWritableStream(this);
const size = strategy.size;
@@ -51,7 +51,7 @@ export class WritableStreamImpl<W = any> implements WritableStream<W> {
this,
underlyingSink,
highWaterMark,
- sizeAlgorithm
+ sizeAlgorithm,
);
}
@@ -69,7 +69,7 @@ export class WritableStreamImpl<W = any> implements WritableStream<W> {
}
if (isWritableStreamLocked(this)) {
return Promise.reject(
- new TypeError("Cannot abort a locked WritableStream.")
+ new TypeError("Cannot abort a locked WritableStream."),
);
}
return writableStreamAbort(this, reason);
@@ -81,12 +81,12 @@ export class WritableStreamImpl<W = any> implements WritableStream<W> {
}
if (isWritableStreamLocked(this)) {
return Promise.reject(
- new TypeError("Cannot abort a locked WritableStream.")
+ new TypeError("Cannot abort a locked WritableStream."),
);
}
if (writableStreamCloseQueuedOrInFlight(this)) {
return Promise.reject(
- new TypeError("Cannot close an already closing WritableStream.")
+ new TypeError("Cannot close an already closing WritableStream."),
);
}
return writableStreamClose(this);