From 3e6b619bd8862d27b18f22ff3645fa96a96b185b Mon Sep 17 00:00:00 2001 From: Dan Date: Wed, 6 Sep 2017 09:40:39 -0230 Subject: [PATCH] Use ternary operator instead of two conditionals. --- ui/app/reducers/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/app/reducers/app.js b/ui/app/reducers/app.js index c55ba179f..d8b9d5e8b 100644 --- a/ui/app/reducers/app.js +++ b/ui/app/reducers/app.js @@ -360,7 +360,7 @@ function reduceApp (state, action) { return extend(appState, { currentView: { name: 'confTx', - context: action.id && indexForPending(state, action.id) || 0, + context: action.id ? indexForPending(state, action.id) : 0, }, transForward: action.transForward, warning: null,