From 2eea38868081d5e1d87b70712253cceb750f2011 Mon Sep 17 00:00:00 2001 From: Mark Stacey Date: Fri, 12 Jul 2019 12:41:39 -0300 Subject: Remove unused expressions (#6839) Unused expressions are generally a mistake, as they don't do anything. The exceptions to this rule (short-circuit expressions and ternary expressions) have been allowed. The `webrtc-adapter` was previously ignored by eslint because it has a side-effect upon being imported. I removed the local variable instead, which should preserve the same side-effect without making eslint complain. --- ui/app/pages/home/home.container.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/app/pages') diff --git a/ui/app/pages/home/home.container.js b/ui/app/pages/home/home.container.js index d0a5d7b47..7508654dc 100644 --- a/ui/app/pages/home/home.container.js +++ b/ui/app/pages/home/home.container.js @@ -3,7 +3,7 @@ import { compose } from 'recompose' import { connect } from 'react-redux' import { withRouter } from 'react-router-dom' import { unconfirmedTransactionsCountSelector } from '../../selectors/confirm-transaction' -`` + const mapStateToProps = state => { const { metamask, appState } = state const { -- cgit