mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-23 20:19:33 +00:00
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));
|
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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user