Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
exports.remove_commands = function(db_path, cb) {
logger.info("REMOVE COMMAND");
regedit.deleteKey(db_path, function(err) {
var e = err && err.code != 'ENOENT' ? err : null;
return cb && cb(e);
// if (err) {
// logger.infologger.info("ERROR deleteKey:", err);
// }
// return cb();
})
//cb();
}
return new Promise(function (resolve, reject) {
regedit.deleteKey(keysToCreate, function (err) {
if (err) {
reject()
} else {
resolve()
}
})
})
}