diff options
author | kumavis <kumavis@users.noreply.github.com> | 2018-07-04 00:40:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-04 00:40:25 +0800 |
commit | 1f0cf11af1c94e750bbc4c5238c3ee028350a6c6 (patch) | |
tree | 5e8d89ef2d904d7b8dffaa356a6b21a8b542a693 /app/scripts/controllers/preferences.js | |
parent | 4d9ef0dd7f3e788f7734c505b72edb4657ddec9d (diff) | |
parent | 53f1072ff467d6284d1fc3143330961749baaf5e (diff) | |
download | tangerine-wallet-browser-1f0cf11af1c94e750bbc4c5238c3ee028350a6c6.tar tangerine-wallet-browser-1f0cf11af1c94e750bbc4c5238c3ee028350a6c6.tar.gz tangerine-wallet-browser-1f0cf11af1c94e750bbc4c5238c3ee028350a6c6.tar.bz2 tangerine-wallet-browser-1f0cf11af1c94e750bbc4c5238c3ee028350a6c6.tar.lz tangerine-wallet-browser-1f0cf11af1c94e750bbc4c5238c3ee028350a6c6.tar.xz tangerine-wallet-browser-1f0cf11af1c94e750bbc4c5238c3ee028350a6c6.tar.zst tangerine-wallet-browser-1f0cf11af1c94e750bbc4c5238c3ee028350a6c6.zip |
Merge pull request #4712 from MetaMask/lint-fix
Lint - Lint all the things (without conflicts!)
Diffstat (limited to 'app/scripts/controllers/preferences.js')
-rw-r--r-- | app/scripts/controllers/preferences.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/scripts/controllers/preferences.js b/app/scripts/controllers/preferences.js index 8411e3a28..b314745f5 100644 --- a/app/scripts/controllers/preferences.js +++ b/app/scripts/controllers/preferences.js @@ -111,9 +111,9 @@ class PreferencesController { * @returns {Promise<string>} selectedAddress the selected address. */ syncAddresses (addresses) { - let { identities, lostIdentities } = this.store.getState() + const { identities, lostIdentities } = this.store.getState() - let newlyLost = {} + const newlyLost = {} Object.keys(identities).forEach((identity) => { if (!addresses.includes(identity)) { newlyLost[identity] = identities[identity] @@ -128,7 +128,7 @@ class PreferencesController { if (this.diagnostics) this.diagnostics.reportOrphans(newlyLost) // store lost accounts - for (let key in newlyLost) { + for (const key in newlyLost) { lostIdentities[key] = newlyLost[key] } } |