Skip to content

Commit db90b50

Browse files
vsemozhetbytjasnell
authored andcommitted
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 2c45e6f commit db90b50

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
@@ -1128,6 +1128,7 @@ const Writable = require('stream').Writable;
11281128
class MyWritable extends Writable {
11291129
constructor(options) {
11301130
super(options);
1131+
// ...
11311132
}
11321133
}
11331134
```
@@ -1257,6 +1258,7 @@ class MyWritable extends Writable {
12571258
constructor(options) {
12581259
// Calls the stream.Writable() constructor
12591260
super(options);
1261+
// ...
12601262
}
12611263
}
12621264
```
@@ -1393,6 +1395,7 @@ const Writable = require('stream').Writable;
13931395
class MyWritable extends Writable {
13941396
constructor(options) {
13951397
super(options);
1398+
// ...
13961399
}
13971400

13981401
_write(chunk, encoding, callback) {
@@ -1435,6 +1438,7 @@ class MyReadable extends Readable {
14351438
constructor(options) {
14361439
// Calls the stream.Readable(options) constructor
14371440
super(options);
1441+
// ...
14381442
}
14391443
}
14401444
```
@@ -1648,6 +1652,7 @@ const Duplex = require('stream').Duplex;
16481652
class MyDuplex extends Duplex {
16491653
constructor(options) {
16501654
super(options);
1655+
// ...
16511656
}
16521657
}
16531658
```
@@ -1803,6 +1808,7 @@ const Transform = require('stream').Transform;
18031808
class MyTransform extends Transform {
18041809
constructor(options) {
18051810
super(options);
1811+
// ...
18061812
}
18071813
}
18081814
```

0 commit comments

Comments
 (0)