make function defaul arg instead

This commit is contained in:
Iuri Matias 2018-09-17 13:36:20 -04:00
parent 7d6809b57f
commit 1296545fa3
1 changed files with 1 additions and 5 deletions

View File

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