summaryrefslogtreecommitdiff
path: root/cli/js/streams
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-02-21 10:36:13 -0500
committerGitHub <noreply@github.com>2020-02-21 10:36:13 -0500
commitdd8a10948195f231a6a9eb652e3f208813904ad6 (patch)
treef9a4afeb67bbead882c29c2458a5f1f99e2e42db /cli/js/streams
parentd9efb8c02a0036d755c35e8e9c88d58bd45a9e2b (diff)
refactor: remove unneeded ErrorKinds (#3936)
Diffstat (limited to 'cli/js/streams')
-rw-r--r--cli/js/streams/pipe-to.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/js/streams/pipe-to.ts b/cli/js/streams/pipe-to.ts
index 3764e605b..01608b955 100644
--- a/cli/js/streams/pipe-to.ts
+++ b/cli/js/streams/pipe-to.ts
@@ -19,7 +19,7 @@
// import { ReadableStreamDefaultReader } from "./readable-stream-default-reader.ts";
// import { WritableStreamDefaultWriter } from "./writable-stream-default-writer.ts";
// import { PipeOptions } from "../dom_types.ts";
-// import { DenoError, ErrorKind } from "../errors.ts";
+// import { Err } from "../errors.ts";
// // add a wrapper to handle falsy rejections
// interface ErrorWrapper {
@@ -50,7 +50,7 @@
// abortAlgorithm = (): void => {
// // TODO this should be a DOMException,
// // https://github.com/stardazed/sd-streams/blob/master/packages/streams/src/pipe-to.ts#L38
-// const error = new DenoError(ErrorKind.AbortError, "Aborted");
+// const error = new Err.Aborted("Aborted");
// const actions: Array<() => Promise<void>> = [];
// if (preventAbort === false) {
// actions.push(() => {