mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-04-08 06:34:28 +00:00
Fix no-void-expression (#20631)
This commit is contained in:
@@ -6,7 +6,7 @@ const readable = new stream.Readable({objectMode: true});
|
||||
|
||||
writable._write = (input, encoding, done) => {
|
||||
if (readable.push(input)) {
|
||||
return done();
|
||||
done();
|
||||
} else {
|
||||
readable.once('drain', <(...args: any[]) => void> done);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user