Combine two identical then blocks

This commit is contained in:
Dan Finlay 2017-01-05 11:03:30 -08:00
parent cf6817092b
commit 7659f5894a
1 changed files with 2 additions and 4 deletions

View File

@ -194,15 +194,13 @@ module.exports = class MetamaskController {
})
.then((rawTx) => {
cb(null, rawTx)
this.sendUpdate()
this.txManager.emit(`${txParams.metamaskId}:signingComplete`)
})
.catch((err) => {
console.error(err)
cb(err)
})
.then(() => {
this.sendUpdate()
this.txManager.emit(`${txParams.metamaskId}:signingComplete`)
})
},
// msg signing