2
0
mirror of https://github.com/therootcompany/request.js synced 2025-02-21 13:38:04 +00:00

bugfix: return after error callback

This commit is contained in:
AJ ONeal 2021-10-18 00:47:06 -06:00
parent ed2bab931f
commit 5f5e0b6066

View File

@ -162,6 +162,7 @@ function setDefaults(defs) {
opts.stream = fs.createWriteStream(opts.stream);
} catch (e) {
cb(e);
return;
}
}
// or an existing write stream