get rid of else

Signed-off-by: VoR0220 <catalanor0220@gmail.com>
This commit is contained in:
VoR0220 2018-06-26 13:28:28 -05:00 committed by Iuri Matias
parent aa23da2b6a
commit 0d2bedff84
1 changed files with 2 additions and 4 deletions

View File

@ -199,9 +199,8 @@ __embarkENS.resolve = function (name) {
if (err == 'Couldn\'t decode addr from ABI: 0x') { if (err == 'Couldn\'t decode addr from ABI: 0x') {
console.log(name + " is not registered"); console.log(name + " is not registered");
return "0x"; 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') { if (err == 'ERROR: The returned value is not a convertible string: 0x0') {
console.log('Address does not resolve to name. Try syncing chain.'); console.log('Address does not resolve to name. Try syncing chain.');
return ""; return "";
} else {
return err;
} }
return err;
}); });
}; };