From 7f0800537e8268dcbc4fce19f38fcbaa3d78a1cd Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 12 Feb 2021 19:02:09 +0300 Subject: silence (or fix) a bunch of eslint warnings --- js/PrefLabelTree.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'js/PrefLabelTree.js') diff --git a/js/PrefLabelTree.js b/js/PrefLabelTree.js index eab1a643b..73f375f2d 100644 --- a/js/PrefLabelTree.js +++ b/js/PrefLabelTree.js @@ -1,3 +1,4 @@ +/* eslint-disable prefer-rest-params */ /* global __, define, lib, dijit, dojo, xhrPost, Notify, fox */ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree", "dijit/form/DropDownButton"], function (declare, domConstruct) { @@ -39,6 +40,7 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree", "dijit/f return tnode; }, getIconClass: function (item, opened) { + // eslint-disable-next-line no-nested-ternary return (!item || this.model.mayHaveChildren(item)) ? (opened ? "dijitFolderOpened" : "dijitFolderClosed") : "invisible"; }, getSelectedLabels: function() { -- cgit v1.2.3