From db90b505e815e88799a15aee017f663cc5c6d60e Mon Sep 17 00:00:00 2001 From: Vse Mozhet Byt Date: Sun, 21 May 2017 21:53:57 +0300 Subject: [PATCH] doc: don't use useless constructors in stream.md PR-URL: https://github.com/nodejs/node/pull/13145 Refs: http://eslint.org/docs/rules/no-useless-constructor Reviewed-By: Refael Ackermann Reviewed-By: Matteo Collina Reviewed-By: Daniel Bevenius Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- doc/api/stream.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/api/stream.md b/doc/api/stream.md index 608c49cfb9baaa..7576fb9da385d6 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -1128,6 +1128,7 @@ const Writable = require('stream').Writable; class MyWritable extends Writable { constructor(options) { super(options); + // ... } } ``` @@ -1257,6 +1258,7 @@ class MyWritable extends Writable { constructor(options) { // Calls the stream.Writable() constructor super(options); + // ... } } ``` @@ -1393,6 +1395,7 @@ const Writable = require('stream').Writable; class MyWritable extends Writable { constructor(options) { super(options); + // ... } _write(chunk, encoding, callback) { @@ -1435,6 +1438,7 @@ class MyReadable extends Readable { constructor(options) { // Calls the stream.Readable(options) constructor super(options); + // ... } } ``` @@ -1648,6 +1652,7 @@ const Duplex = require('stream').Duplex; class MyDuplex extends Duplex { constructor(options) { super(options); + // ... } } ``` @@ -1803,6 +1808,7 @@ const Transform = require('stream').Transform; class MyTransform extends Transform { constructor(options) { super(options); + // ... } } ```