make function defaul arg instead
This commit is contained in:
parent
7d6809b57f
commit
1296545fa3
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue