Permalink
Browse files

doc: don't use useless constructors in stream.md

PR-URL: #13145
Refs: http://eslint.org/docs/rules/no-useless-constructor
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information...
vsemozhetbyt committed May 21, 2017
1 parent 9278ce2 commit 6af72d4b037eba38d94395f57a03a498a2efef09
Showing with 6 additions and 0 deletions.
  1. +6 −0 doc/api/stream.md
View
@@ -1157,6 +1157,7 @@ const Writable = require('stream').Writable;
class MyWritable extends Writable {
constructor(options) {
super(options);
// ...
}
}
```
@@ -1288,6 +1289,7 @@ class MyWritable extends Writable {
constructor(options) {
// Calls the stream.Writable() constructor
super(options);
// ...
}
}
```
@@ -1433,6 +1435,7 @@ const Writable = require('stream').Writable;
class MyWritable extends Writable {
constructor(options) {
super(options);
// ...
}
_write(chunk, encoding, callback) {
@@ -1477,6 +1480,7 @@ class MyReadable extends Readable {
constructor(options) {
// Calls the stream.Readable(options) constructor
super(options);
// ...
}
}
```
@@ -1690,6 +1694,7 @@ const Duplex = require('stream').Duplex;
class MyDuplex extends Duplex {
constructor(options) {
super(options);
// ...
}
}
```
@@ -1845,6 +1850,7 @@ const Transform = require('stream').Transform;
class MyTransform extends Transform {
constructor(options) {
super(options);
// ...
}
}
```

0 comments on commit 6af72d4

Please sign in to comment.