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 <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 authored and MylesBorins committed Jul 17, 2017
1 parent cb03bd1 commit fb07fbc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc/api/stream.md
Expand Up @@ -1117,6 +1117,7 @@ const Writable = require('stream').Writable;
class MyWritable extends Writable {
constructor(options) {
super(options);
// ...
}
}
```
Expand Down Expand Up @@ -1243,6 +1244,7 @@ class MyWritable extends Writable {
constructor(options) {
// Calls the stream.Writable() constructor
super(options);
// ...
}
}
```
Expand Down Expand Up @@ -1378,6 +1380,7 @@ const Writable = require('stream').Writable;
class MyWritable extends Writable {
constructor(options) {
super(options);
// ...
}

_write(chunk, encoding, callback) {
Expand Down Expand Up @@ -1420,6 +1423,7 @@ class MyReadable extends Readable {
constructor(options) {
// Calls the stream.Readable(options) constructor
super(options);
// ...
}
}
```
Expand Down Expand Up @@ -1633,6 +1637,7 @@ const Duplex = require('stream').Duplex;
class MyDuplex extends Duplex {
constructor(options) {
super(options);
// ...
}
}
```
Expand Down Expand Up @@ -1788,6 +1793,7 @@ const Transform = require('stream').Transform;
class MyTransform extends Transform {
constructor(options) {
super(options);
// ...
}
}
```
Expand Down

0 comments on commit fb07fbc

Please sign in to comment.