17782: removes linter warnings for cwl-svg code.
[arvados-workbench2.git] / src / lib / cwl-svg / plugins / selection / selection.ts
index a4e7a31236bc9f2a3059d13f93e0acb1c37a8fa9..443e60ad9cf1150647c88246a06a387ac3ebb67b 100644 (file)
@@ -146,12 +146,12 @@ export class SelectionPlugin extends PluginBase {
 
         let element: SVGElement | undefined;
 
-        if (element = this.workflow.findParent(target, "node")) {
+        if ((element = this.workflow.findParent(target, "node"))) {
             this.selectNode(element);
             this.selection.set(element.getAttribute("data-connection-id")!, "node");
             this.emitChange(element);
 
-        } else if (element = this.workflow.findParent(target, "edge")) {
+        } else if ((element = this.workflow.findParent(target, "edge"))) {
             this.selectEdge(element);
             const cid = [
                 element.getAttribute("data-source-connection"),