Closed benzino77 closed 4 years ago
Hi there,
get_version() function does not return reject in case of error https://github.com/kylefarris/clamscan/blob/5f557c970817fe8c578ec3f7ad3bcbcef4cf5538/index.js#L690
get_version()
I think that it should be return (has_cb ? cb(err, null) : reject(err));
return (has_cb ? cb(err, null) : reject(err));
I believe you're right. Surprised the unit tests didn't catch this.
Thanks for a merge!
No problem!
I'll get a new patched version out tomorrow. Going to try to get a few other minor bugs/issues put into it.
Hi there,
get_version()
function does not return reject in case of error https://github.com/kylefarris/clamscan/blob/5f557c970817fe8c578ec3f7ad3bcbcef4cf5538/index.js#L690I think that it should be
return (has_cb ? cb(err, null) : reject(err));