diff options
author | Dan Finlay <flyswatter@users.noreply.github.com> | 2017-04-28 05:48:13 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-28 05:48:13 +0800 |
commit | a90b010de891f7936bc17c09c5fd27c61fc0610d (patch) | |
tree | d907d24ffee4f03d360bad97b5ac99bf83c53e13 /app/scripts/controllers/preferences.js | |
parent | 72cb49511fa8de8eea4601f6fc09b2df1a5e4753 (diff) | |
parent | 6bdb4c87288a522d9ea2e984bc1f6436d6c7369a (diff) | |
download | tangerine-wallet-browser-a90b010de891f7936bc17c09c5fd27c61fc0610d.tar tangerine-wallet-browser-a90b010de891f7936bc17c09c5fd27c61fc0610d.tar.gz tangerine-wallet-browser-a90b010de891f7936bc17c09c5fd27c61fc0610d.tar.bz2 tangerine-wallet-browser-a90b010de891f7936bc17c09c5fd27c61fc0610d.tar.lz tangerine-wallet-browser-a90b010de891f7936bc17c09c5fd27c61fc0610d.tar.xz 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/controllers/preferences.js')
-rw-r--r-- | app/scripts/controllers/preferences.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/app/scripts/controllers/preferences.js b/app/scripts/controllers/preferences.js index c7f675a41..7212c7c43 100644 --- a/app/scripts/controllers/preferences.js +++ b/app/scripts/controllers/preferences.js @@ -36,8 +36,8 @@ class PreferencesController { } addToFrequentRpcList (_url) { - let rpcList = this.getFrequentRpcList() - let index = rpcList.findIndex((element) => { return element === _url }) + const rpcList = this.getFrequentRpcList() + const index = rpcList.findIndex((element) => { return element === _url }) if (index !== -1) { rpcList.splice(index, 1) } @@ -53,13 +53,9 @@ class PreferencesController { getFrequentRpcList () { return this.store.getState().frequentRpcList } - // // PRIVATE METHODS // - - - } module.exports = PreferencesController |