Skip to content

Commit

Permalink
doc: don't use useless constructors in stream.md
Browse files Browse the repository at this point in the history
PR-URL: #13145
Refs: http://eslint.org/docs/rules/no-useless-constructor
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Daniel Bevenius <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
vsemozhetbyt committed May 24, 2017
1 parent 9278ce2 commit 6af72d4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc/api/stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -1157,6 +1157,7 @@ const Writable = require('stream').Writable;
class MyWritable extends Writable {
constructor(options) {
super(options);
// ...
}
}
```
Expand Down Expand Up @@ -1288,6 +1289,7 @@ class MyWritable extends Writable {
constructor(options) {
// Calls the stream.Writable() constructor
super(options);
// ...
}
}
```
Expand Down Expand Up @@ -1433,6 +1435,7 @@ const Writable = require('stream').Writable;
class MyWritable extends Writable {
constructor(options) {
super(options);
// ...
}

_write(chunk, encoding, callback) {
Expand Down Expand Up @@ -1477,6 +1480,7 @@ class MyReadable extends Readable {
constructor(options) {
// Calls the stream.Readable(options) constructor
super(options);
// ...
}
}
```
Expand Down Expand Up @@ -1690,6 +1694,7 @@ const Duplex = require('stream').Duplex;
class MyDuplex extends Duplex {
constructor(options) {
super(options);
// ...
}
}
```
Expand Down Expand Up @@ -1845,6 +1850,7 @@ const Transform = require('stream').Transform;
class MyTransform extends Transform {
constructor(options) {
super(options);
// ...
}
}
```
Expand Down

0 comments on commit 6af72d4

Please sign in to comment.