Skip to content

Commit fb07fbc

Browse files
vsemozhetbytMylesBorins
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 cb03bd1 commit fb07fbc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

doc/api/stream.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1117,6 +1117,7 @@ const Writable = require('stream').Writable;
11171117
class MyWritable extends Writable {
11181118
constructor(options) {
11191119
super(options);
1120+
// ...
11201121
}
11211122
}
11221123
```
@@ -1243,6 +1244,7 @@ class MyWritable extends Writable {
12431244
constructor(options) {
12441245
// Calls the stream.Writable() constructor
12451246
super(options);
1247+
// ...
12461248
}
12471249
}
12481250
```
@@ -1378,6 +1380,7 @@ const Writable = require('stream').Writable;
13781380
class MyWritable extends Writable {
13791381
constructor(options) {
13801382
super(options);
1383+
// ...
13811384
}
13821385

13831386
_write(chunk, encoding, callback) {
@@ -1420,6 +1423,7 @@ class MyReadable extends Readable {
14201423
constructor(options) {
14211424
// Calls the stream.Readable(options) constructor
14221425
super(options);
1426+
// ...
14231427
}
14241428
}
14251429
```
@@ -1633,6 +1637,7 @@ const Duplex = require('stream').Duplex;
16331637
class MyDuplex extends Duplex {
16341638
constructor(options) {
16351639
super(options);
1640+
// ...
16361641
}
16371642
}
16381643
```
@@ -1788,6 +1793,7 @@ const Transform = require('stream').Transform;
17881793
class MyTransform extends Transform {
17891794
constructor(options) {
17901795
super(options);
1796+
// ...
17911797
}
17921798
}
17931799
```

0 commit comments

Comments
 (0)