mirror of
https://github.com/djhackersdev/minime.git
synced 2026-03-21 17:54:13 -05:00
check for both null AND undefined in stream writer (#44)
This fixes IDZ support when minime is run using a newer LTS version of node js. (Streams use null for the error argument now for write and end callbacks)
This commit is contained in:
parent
d6d98aa561
commit
87661cf871
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user