1
0
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:
Vladimir Volek 2018-09-05 16:41:03 +02:00
parent 6802ebdd1b
commit 288a81775d
3 changed files with 4 additions and 16 deletions

View File

@ -1,4 +1,5 @@
solidity
public
coverage
images
node_modules
node_modules
src/flowtype/npm

View File

@ -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';

View File

@ -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;