mirror of
https://github.com/trezor/trezor-wallet
synced 2025-01-12 09:00:58 +00:00
Fixed bunch of eslint errors
This commit is contained in:
parent
6802ebdd1b
commit
288a81775d
@ -1,4 +1,5 @@
|
||||
solidity
|
||||
public
|
||||
coverage
|
||||
images
|
||||
node_modules
|
||||
node_modules
|
||||
src/flowtype/npm
|
@ -4,7 +4,6 @@
|
||||
import Web3 from 'web3';
|
||||
|
||||
import type { ContractFactory } from 'web3';
|
||||
import * as STORAGE from 'actions/constants/localStorage';
|
||||
import * as WEB3 from 'actions/constants/web3';
|
||||
|
||||
import type { Action } from 'flowtype';
|
||||
|
@ -1,20 +1,8 @@
|
||||
/* @flow */
|
||||
|
||||
|
||||
import * as LogActions from 'actions/LogActions';
|
||||
import * as STORAGE from 'actions/constants/localStorage';
|
||||
import * as WALLET from 'actions/constants/wallet';
|
||||
import BigNumber from 'bignumber.js';
|
||||
|
||||
import type {
|
||||
Middleware,
|
||||
MiddlewareAPI,
|
||||
MiddlewareDispatch,
|
||||
State,
|
||||
Dispatch,
|
||||
Action,
|
||||
AsyncAction,
|
||||
GetState,
|
||||
Device,
|
||||
TrezorDevice,
|
||||
Account,
|
||||
@ -65,7 +53,7 @@ export const getDuplicateInstanceNumber = (devices: Array<TrezorDevice>, device:
|
||||
}
|
||||
return !b.instance || a.instance > b.instance ? 1 : -1;
|
||||
});
|
||||
|
||||
|
||||
// calculate new instance number
|
||||
const instance: number = affectedDevices.reduce((inst, dev) => (dev.instance ? dev.instance + 1 : inst + 1), 0);
|
||||
return instance;
|
||||
|
Loading…
Reference in New Issue
Block a user