From 5e7cd6a88b98281ab81c15f71e17bf3302191eba Mon Sep 17 00:00:00 2001 From: VoR0220 Date: Tue, 26 Jun 2018 13:28:28 -0500 Subject: [PATCH] get rid of else Signed-off-by: VoR0220 --- lib/modules/ens/embarkjs.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/modules/ens/embarkjs.js b/lib/modules/ens/embarkjs.js index 905af1129..40bc99e60 100644 --- a/lib/modules/ens/embarkjs.js +++ b/lib/modules/ens/embarkjs.js @@ -176,9 +176,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; }); }; @@ -200,8 +199,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; }); };