Skip to content

Commit 6af72d4

Browse files
committed
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 <[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]>
1 parent 9278ce2 commit 6af72d4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

doc/api/stream.md

+6
Original file line numberDiff line numberDiff line change
@@ -1157,6 +1157,7 @@ const Writable = require('stream').Writable;
11571157
class MyWritable extends Writable {
11581158
constructor(options) {
11591159
super(options);
1160+
// ...
11601161
}
11611162
}
11621163
```
@@ -1288,6 +1289,7 @@ class MyWritable extends Writable {
12881289
constructor(options) {
12891290
// Calls the stream.Writable() constructor
12901291
super(options);
1292+
// ...
12911293
}
12921294
}
12931295
```
@@ -1433,6 +1435,7 @@ const Writable = require('stream').Writable;
14331435
class MyWritable extends Writable {
14341436
constructor(options) {
14351437
super(options);
1438+
// ...
14361439
}
14371440

14381441
_write(chunk, encoding, callback) {
@@ -1477,6 +1480,7 @@ class MyReadable extends Readable {
14771480
constructor(options) {
14781481
// Calls the stream.Readable(options) constructor
14791482
super(options);
1483+
// ...
14801484
}
14811485
}
14821486
```
@@ -1690,6 +1694,7 @@ const Duplex = require('stream').Duplex;
16901694
class MyDuplex extends Duplex {
16911695
constructor(options) {
16921696
super(options);
1697+
// ...
16931698
}
16941699
}
16951700
```
@@ -1845,6 +1850,7 @@ const Transform = require('stream').Transform;
18451850
class MyTransform extends Transform {
18461851
constructor(options) {
18471852
super(options);
1853+
// ...
18481854
}
18491855
}
18501856
```

0 commit comments

Comments
 (0)