take into account when event does not trigger a cb

This commit is contained in:
Iuri Matias 2018-09-15 12:52:11 -04:00
parent a43627de5b
commit 7d6809b57f
1 changed files with 5 additions and 1 deletions

View File

@ -33,7 +33,11 @@ class ENS {
this.events.setCommandHandler("storage:ens:associate", this.associateStorageToEns.bind(this)); this.events.setCommandHandler("storage:ens:associate", this.associateStorageToEns.bind(this));
} }
setProviderAndRegisterDomains(cb) { setProviderAndRegisterDomains(_cb) {
let cb = _cb
if (!cb) {
cb = function() {}
}
const self = this; const self = this;
async.parallel([ async.parallel([
function getENSRegistry(paraCb) { function getENSRegistry(paraCb) {