silence bluebird warning

This commit is contained in:
Iuri Matias 2018-05-11 15:59:18 -04:00
parent 26187cfa1d
commit 7d8dd02db1
1 changed files with 2 additions and 0 deletions

View File

@ -43,8 +43,10 @@ function __getAccounts(cb) {
if (__isNewWeb3_1()) { if (__isNewWeb3_1()) {
web3.eth.getAccounts().then(function(accounts) { web3.eth.getAccounts().then(function(accounts) {
cb(null, accounts); cb(null, accounts);
return null;
}).catch(function(err) { }).catch(function(err) {
cb(err); cb(err);
return null;
}); });
return; return;
} }