From fb07fbcc8126560871aa560278f4d7f6492b2618 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 23b894087afb77..b0cd6a73fcd4d7 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -1117,6 +1117,7 @@ const Writable = require('stream').Writable; class MyWritable extends Writable { constructor(options) { super(options); + // ... } } ``` @@ -1243,6 +1244,7 @@ class MyWritable extends Writable { constructor(options) { // Calls the stream.Writable() constructor super(options); + // ... } } ``` @@ -1378,6 +1380,7 @@ const Writable = require('stream').Writable; class MyWritable extends Writable { constructor(options) { super(options); + // ... } _write(chunk, encoding, callback) { @@ -1420,6 +1423,7 @@ class MyReadable extends Readable { constructor(options) { // Calls the stream.Readable(options) constructor super(options); + // ... } } ``` @@ -1633,6 +1637,7 @@ const Duplex = require('stream').Duplex; class MyDuplex extends Duplex { constructor(options) { super(options); + // ... } } ``` @@ -1788,6 +1793,7 @@ const Transform = require('stream').Transform; class MyTransform extends Transform { constructor(options) { super(options); + // ... } } ```