mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-11 14:24:24 +00:00
get rid of else
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
This commit is contained in:
parent
8bf79e704d
commit
5e7cd6a88b
@ -176,9 +176,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;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -200,8 +199,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;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user