simple return
This commit is contained in:
parent
c6faadd53f
commit
1a17046760
1 changed files with 1 additions and 12 deletions
|
|
@ -140,18 +140,7 @@ angular.module('copayApp.services').factory('walletService', function($log, $tim
|
||||||
wallet.getStatus({
|
wallet.getStatus({
|
||||||
twoStep: true
|
twoStep: true
|
||||||
}, function(err, ret) {
|
}, function(err, ret) {
|
||||||
if (err) {
|
if (err) return cb(err);
|
||||||
if (err instanceof errors.NOT_AUTHORIZED)
|
|
||||||
return cb('WALLET_NOT_REGISTERED');
|
|
||||||
|
|
||||||
if (err instanceof errors.CONNECTION_ERROR)
|
|
||||||
return cb('CONNECTION_ERROR');
|
|
||||||
|
|
||||||
if (err instanceof errors.NOT_FOUND)
|
|
||||||
return cb('NOT_FOUND');
|
|
||||||
|
|
||||||
return cb(err);
|
|
||||||
}
|
|
||||||
return cb(null, ret);
|
return cb(null, ret);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue