aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/keyring-controller.js
diff options
context:
space:
mode:
authorDan Finlay <flyswatter@users.noreply.github.com>2017-04-28 05:48:13 +0800
committerGitHub <noreply@github.com>2017-04-28 05:48:13 +0800
commita90b010de891f7936bc17c09c5fd27c61fc0610d (patch)
treed907d24ffee4f03d360bad97b5ac99bf83c53e13 /app/scripts/keyring-controller.js
parent72cb49511fa8de8eea4601f6fc09b2df1a5e4753 (diff)
parent6bdb4c87288a522d9ea2e984bc1f6436d6c7369a (diff)
downloadtangerine-wallet-browser-a90b010de891f7936bc17c09c5fd27c61fc0610d.tar.gz
tangerine-wallet-browser-a90b010de891f7936bc17c09c5fd27c61fc0610d.tar.zst
tangerine-wallet-browser-a90b010de891f7936bc17c09c5fd27c61fc0610d.zip
Merge pull request #1351 from MetaMask/lint
Fix linting warnings
Diffstat (limited to 'app/scripts/keyring-controller.js')
-rw-r--r--app/scripts/keyring-controller.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/scripts/keyring-controller.js b/app/scripts/keyring-controller.js
index 16df6efa6..5b3c80e40 100644
--- a/app/scripts/keyring-controller.js
+++ b/app/scripts/keyring-controller.js
@@ -187,7 +187,7 @@ class KeyringController extends EventEmitter {
.then((accounts) => {
switch (type) {
case 'Simple Key Pair':
- let isNotIncluded = !accounts.find((key) => key === newAccount[0] || key === ethUtil.stripHexPrefix(newAccount[0]))
+ const isNotIncluded = !accounts.find((key) => key === newAccount[0] || key === ethUtil.stripHexPrefix(newAccount[0]))
return (isNotIncluded) ? Promise.resolve(newAccount) : Promise.reject(new Error('The account you\'re are trying to import is a duplicate'))
default:
return Promise.resolve(newAccount)
@@ -582,7 +582,7 @@ class KeyringController extends EventEmitter {
})
}
- _updateMemStoreKeyrings() {
+ _updateMemStoreKeyrings () {
Promise.all(this.keyrings.map(this.displayForKeyring))
.then((keyrings) => {
this.memStore.updateState({ keyrings })