diff --git a/lib/modules/ens/embarkjs.js b/lib/modules/ens/embarkjs.js index de7c542d..65911067 100644 --- a/lib/modules/ens/embarkjs.js +++ b/lib/modules/ens/embarkjs.js @@ -199,9 +199,8 @@ __embarkENS.resolve = function (name) { if (err == 'Couldn\'t decode addr from ABI: 0x') { console.log(name + " is not registered"); return "0x"; - } else { - return err; } + return err; }); }; @@ -223,8 +222,7 @@ __embarkENS.lookup = function (address) { if (err == 'ERROR: The returned value is not a convertible string: 0x0') { console.log('Address does not resolve to name. Try syncing chain.'); return ""; - } else { - return err; } + return err; }); };