From 4971a204094de667a88d2fa8eaa8fbb99eb184f3 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Sun, 13 Aug 2017 23:42:06 -0400 Subject: [PATCH] Pacify eslint --- modules/ui/changeset_editor.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/ui/changeset_editor.js b/modules/ui/changeset_editor.js index a157e58f1..b65c8f7cc 100644 --- a/modules/ui/changeset_editor.js +++ b/modules/ui/changeset_editor.js @@ -85,8 +85,10 @@ export function uiChangesetEditor(context) { if (initial) { var node = d3.select('#preset-input-comment').node(); - node && node.focus(); - node && node.select(); + if (node) { + node.focus(); + node.select(); + } } notShown = notShown.map(function(field) {