1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Remove callback type check

This commit is contained in:
Dan Finlay 2016-11-22 12:57:15 -08:00
parent a67b4d7131
commit 606c0b7618

View File

@ -178,7 +178,7 @@ module.exports = class KeyringController extends EventEmitter {
const seedWords = firstKeyring.serialize().mnemonic const seedWords = firstKeyring.serialize().mnemonic
this.configManager.setSeedWords(seedWords) this.configManager.setSeedWords(seedWords)
if (cb && typeof cb === 'function') { if (cb) {
cb() cb()
this.emit('update') this.emit('update')
} }