diff options
author | Thomas Huang <thomas.b.huang@gmail.com> | 2017-04-27 12:05:45 +0800 |
---|---|---|
committer | Thomas Huang <thomas.b.huang@gmail.com> | 2017-04-27 12:05:45 +0800 |
commit | 6bdb4c87288a522d9ea2e984bc1f6436d6c7369a (patch) | |
tree | 62c09f13aa36f582ddfbbca1b92302069035e061 /app/scripts/background.js | |
parent | afbe6f5e5fa18b663cfe68c40a05bcacda73e3ac (diff) | |
download | tangerine-wallet-browser-6bdb4c87288a522d9ea2e984bc1f6436d6c7369a.tar tangerine-wallet-browser-6bdb4c87288a522d9ea2e984bc1f6436d6c7369a.tar.gz tangerine-wallet-browser-6bdb4c87288a522d9ea2e984bc1f6436d6c7369a.tar.bz2 tangerine-wallet-browser-6bdb4c87288a522d9ea2e984bc1f6436d6c7369a.tar.lz tangerine-wallet-browser-6bdb4c87288a522d9ea2e984bc1f6436d6c7369a.tar.xz tangerine-wallet-browser-6bdb4c87288a522d9ea2e984bc1f6436d6c7369a.tar.zst tangerine-wallet-browser-6bdb4c87288a522d9ea2e984bc1f6436d6c7369a.zip |
Fix linting warnings
Diffstat (limited to 'app/scripts/background.js')
-rw-r--r-- | app/scripts/background.js | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/app/scripts/background.js b/app/scripts/background.js index 7211f1e0c..58f8e7556 100644 --- a/app/scripts/background.js +++ b/app/scripts/background.js @@ -41,10 +41,10 @@ asyncQ.waterfall([ // State and Persistence // -function loadStateFromPersistence() { +function loadStateFromPersistence () { // migrations - let migrator = new Migrator({ migrations }) - let initialState = migrator.generateInitialState(firstTimeState) + const migrator = new Migrator({ migrations }) + const initialState = migrator.generateInitialState(firstTimeState) return asyncQ.waterfall([ // read from disk () => Promise.resolve(diskStore.getState() || initialState), @@ -61,7 +61,6 @@ function loadStateFromPersistence() { } function setupController (initState) { - // // MetaMask Controller // @@ -85,8 +84,8 @@ function setupController (initState) { diskStore ) - function versionifyData(state) { - let versionedData = diskStore.getState() + function versionifyData (state) { + const versionedData = diskStore.getState() versionedData.data = state return versionedData } @@ -138,7 +137,6 @@ function setupController (initState) { } return Promise.resolve() - } // |