]> git.proxmox.com Git - pve-manager.git/blobdiff - www/manager6/panel/ConfigPanel.js
ui: eslint: enforce "no-extra-parens" rule
[pve-manager.git] / www / manager6 / panel / ConfigPanel.js
index 9f1c373b213b0526bac2948a96f7c3dcbd9abea2..23a6ee581a8be435d31e1e9c15589223ca5684bb 100644 (file)
@@ -254,12 +254,12 @@ Ext.define('PVE.panel.Config', {
        // select the new item
        var statechange = function(sp, key, state) {
            // it the state change is for this panel
-           if (stateid && (key === stateid) && state) {
+           if (stateid && key === stateid && state) {
                // get active item
                var acard = me.getLayout().getActiveItem().itemId;
                // get the itemid of the new value
                var ncard = state.value || me.firstItem;
-               if (ncard && (acard != ncard)) {
+               if (ncard && acard != ncard) {
                    // select the chosen item
                    menu.setSelection(root.findChild('id', ncard, true) || root.firstChild);
                }