From 1296545fa3174225fb86b38e1d5041550e2b6c9c Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Mon, 17 Sep 2018 13:36:20 -0400 Subject: [PATCH] make function defaul arg instead --- lib/modules/ens/index.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/modules/ens/index.js b/lib/modules/ens/index.js index 85b182ed7..7329f04d5 100644 --- a/lib/modules/ens/index.js +++ b/lib/modules/ens/index.js @@ -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) {