From 7d6809b57fe3f8c52253e5b02b057b5cb45eae5c Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Sat, 15 Sep 2018 12:52:11 -0400 Subject: [PATCH] take into account when event does not trigger a cb --- lib/modules/ens/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/modules/ens/index.js b/lib/modules/ens/index.js index bef34d59f..85b182ed7 100644 --- a/lib/modules/ens/index.js +++ b/lib/modules/ens/index.js @@ -33,7 +33,11 @@ class ENS { this.events.setCommandHandler("storage:ens:associate", this.associateStorageToEns.bind(this)); } - setProviderAndRegisterDomains(cb) { + setProviderAndRegisterDomains(_cb) { + let cb = _cb + if (!cb) { + cb = function() {} + } const self = this; async.parallel([ function getENSRegistry(paraCb) {