mirror of
https://github.com/djhackersdev/minime.git
synced 2026-09-07 18:15:24 -05:00
check for both null AND undefined in stream writer
This commit is contained in:
@@ -14,7 +14,7 @@ export default function makeWriter(stm: Writable) {
|
||||
stm.write(buf, error => {
|
||||
busy = false;
|
||||
|
||||
if (error !== undefined) {
|
||||
if (error !== null && error !== undefined) {
|
||||
reject(error);
|
||||
} else {
|
||||
resolve();
|
||||
|
||||
Reference in New Issue
Block a user