Browse Source
fix(lints): Consistently use no {} if not necessary in reducers
Eslint wants the args to be in () if the body is in {}, but we
don't need either in the case of receiveInvoiceAndQueryRoutes.
renovate/lint-staged-8.x
Ben Woosley
7 years ago
No known key found for this signature in database
GPG Key ID: 6EE5F3785F78B345
1 changed files with
5 additions and
4 deletions
-
app/reducers/network.js
|
|
@ -134,7 +134,8 @@ export const fetchDescribeNetwork = () => (dispatch) => { |
|
|
|
} |
|
|
|
|
|
|
|
// Receive IPC event for describeNetwork
|
|
|
|
export const receiveDescribeNetwork = (event, { nodes, edges }) => dispatch => dispatch({ type: RECEIVE_DESCRIBE_NETWORK, nodes, edges }) |
|
|
|
export const receiveDescribeNetwork = (event, { nodes, edges }) => dispatch => |
|
|
|
dispatch({ type: RECEIVE_DESCRIBE_NETWORK, nodes, edges }) |
|
|
|
|
|
|
|
export const queryRoutes = (pubkey, amount) => (dispatch) => { |
|
|
|
dispatch(getQueryRoutes(pubkey)) |
|
|
@ -149,9 +150,9 @@ export const fetchInvoiceAndQueryRoutes = payreq => (dispatch) => { |
|
|
|
ipcRenderer.send('lnd', { msg: 'getInvoiceAndQueryRoutes', data: { payreq } }) |
|
|
|
} |
|
|
|
|
|
|
|
export const receiveInvoiceAndQueryRoutes = (event, { routes }) => dispatch => { |
|
|
|
export const receiveInvoiceAndQueryRoutes = (event, { routes }) => dispatch => |
|
|
|
dispatch({ type: RECEIVE_INFO_AND_QUERY_ROUTES, routes }) |
|
|
|
} |
|
|
|
|
|
|
|
// ------------------------------------
|
|
|
|
// Action Handlers
|
|
|
|
// ------------------------------------
|
|
|
|