aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorThomas Huang <thomas.b.huang@gmail.com>2017-05-29 02:18:07 +0800
committerkumavis <aaron@kumavis.me>2017-06-13 02:08:32 +0800
commit13e667202835b082eb840ec2fb59511d687acdba (patch)
treed72e25b75b3332f200e1dfa6e76591d202dafeee /app
parent8af41f1b0539e70cf4c6e1f4a9f4b10ad13656fc (diff)
downloadtangerine-wallet-browser-13e667202835b082eb840ec2fb59511d687acdba.tar
tangerine-wallet-browser-13e667202835b082eb840ec2fb59511d687acdba.tar.gz
tangerine-wallet-browser-13e667202835b082eb840ec2fb59511d687acdba.tar.bz2
tangerine-wallet-browser-13e667202835b082eb840ec2fb59511d687acdba.tar.lz
tangerine-wallet-browser-13e667202835b082eb840ec2fb59511d687acdba.tar.xz
tangerine-wallet-browser-13e667202835b082eb840ec2fb59511d687acdba.tar.zst
tangerine-wallet-browser-13e667202835b082eb840ec2fb59511d687acdba.zip
Linting
Diffstat (limited to 'app')
-rw-r--r--app/scripts/background.js2
-rw-r--r--app/scripts/lib/migrator/index.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/app/scripts/background.js b/app/scripts/background.js
index 63c8a7252..1dbfb1b98 100644
--- a/app/scripts/background.js
+++ b/app/scripts/background.js
@@ -31,7 +31,7 @@ const diskStore = new LocalStorageStore({ storageKey: STORAGE_KEY })
// initialization flow
initialize().catch(console.error)
-async function initialize() {
+async function initialize () {
const initState = await loadStateFromPersistence()
await setupController(initState)
console.log('MetaMask initialization complete.')
diff --git a/app/scripts/lib/migrator/index.js b/app/scripts/lib/migrator/index.js
index de6f5d5cd..4fd2cae92 100644
--- a/app/scripts/lib/migrator/index.js
+++ b/app/scripts/lib/migrator/index.js
@@ -14,8 +14,8 @@ class Migrator {
async migrateData (versionedData = this.generateInitialState()) {
const pendingMigrations = this.migrations.filter(migrationIsPending)
- for (let index in pendingMigrations) {
- let migration = pendingMigrations[index]
+ for (const index in pendingMigrations) {
+ const migration = pendingMigrations[index]
versionedData = await migration.migrate(versionedData)
if (!versionedData.data) throw new Error('Migrator - migration returned empty data')
if (versionedData.version !== undefined && versionedData.meta.version !== migration.version) throw new Error('Migrator - Migration did not update version number correctly')