diff options
author | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2019-05-09 03:51:33 +0800 |
---|---|---|
committer | Frankie <frankie.diamond@gmail.com> | 2019-05-09 03:51:33 +0800 |
commit | 094e4cf555c698bfef50ca6679cd1e98f4ea9aa1 (patch) | |
tree | cd2b1df66e2a00cc7c24f2c09e28f28f10262a43 /app/scripts/migrations | |
parent | ef8a07c2ce2b1c5fc4ef18f48592b2e7da178c44 (diff) | |
download | tangerine-wallet-browser-094e4cf555c698bfef50ca6679cd1e98f4ea9aa1.tar tangerine-wallet-browser-094e4cf555c698bfef50ca6679cd1e98f4ea9aa1.tar.gz tangerine-wallet-browser-094e4cf555c698bfef50ca6679cd1e98f4ea9aa1.tar.bz2 tangerine-wallet-browser-094e4cf555c698bfef50ca6679cd1e98f4ea9aa1.tar.lz tangerine-wallet-browser-094e4cf555c698bfef50ca6679cd1e98f4ea9aa1.tar.xz tangerine-wallet-browser-094e4cf555c698bfef50ca6679cd1e98f4ea9aa1.tar.zst tangerine-wallet-browser-094e4cf555c698bfef50ca6679cd1e98f4ea9aa1.zip |
Check for unused function arguments (#6583)
* eslint: Check for unused function arguments
* eslint: Ignore unused '_' in argument list
Also allow any number of '_' e.g., '__' or '___' which is to be used sparingly
* Remove and rename unused arguments
Diffstat (limited to 'app/scripts/migrations')
-rw-r--r-- | app/scripts/migrations/024.js | 2 | ||||
-rw-r--r-- | app/scripts/migrations/025.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/scripts/migrations/024.js b/app/scripts/migrations/024.js index d0b276a79..6239bab13 100644 --- a/app/scripts/migrations/024.js +++ b/app/scripts/migrations/024.js @@ -27,7 +27,7 @@ function transformState (state) { const newState = state if (!newState.TransactionController) return newState const transactions = newState.TransactionController.transactions - newState.TransactionController.transactions = transactions.map((txMeta, _, txList) => { + newState.TransactionController.transactions = transactions.map((txMeta, _) => { if ( txMeta.status === 'unapproved' && txMeta.txParams && diff --git a/app/scripts/migrations/025.js b/app/scripts/migrations/025.js index fc3b20a44..fd4faa782 100644 --- a/app/scripts/migrations/025.js +++ b/app/scripts/migrations/025.js @@ -43,7 +43,7 @@ function normalizeTxParams (txParams) { // functions that handle normalizing of that key in txParams const whiteList = { from: from => ethUtil.addHexPrefix(from).toLowerCase(), - to: to => ethUtil.addHexPrefix(txParams.to).toLowerCase(), + to: () => ethUtil.addHexPrefix(txParams.to).toLowerCase(), nonce: nonce => ethUtil.addHexPrefix(nonce), value: value => ethUtil.addHexPrefix(value), data: data => ethUtil.addHexPrefix(data), |