mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Fix no-void-expression (#20631)
This commit is contained in:
parent
fb93c75e47
commit
f56bf1addf
@ -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);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user