]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
some more eslint fixes
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 6 Jun 2020 13:05:48 +0000 (15:05 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 6 Jun 2020 13:05:50 +0000 (15:05 +0200)
manually adapted after eslint --fix call due to our damn weird
indentation scheme

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
data/ProxmoxProxy.js
grid/ObjectGrid.js
mixin/CBind.js

index e9e15ac3d4a07ac6740fd32b64f42acc8cdf8b08..e9e78f71c65a32a5340227d52c0e1b2ed30cd12a 100644 (file)
@@ -12,7 +12,6 @@ Ext.define('Proxmox.RestProxy', {
 
     afterRequest: function(request, success) {
        this.fireEvent('afterload', this, request, success);
-       return;
     },
 
     constructor: function(config) {
index cb28c24af93e9a80f41e8415c11b553ea01296f4..4a722ac83c3d0e712cbf084ccb4a1eefa5fb133c 100644 (file)
@@ -261,9 +261,9 @@ Ext.define('Proxmox.grid.ObjectGrid', {
            });
        }
 
-       var rstore = me.rstore;
-
-       var store = Ext.create('Proxmox.data.DiffStore', { rstore: rstore,
+       let rstore = me.rstore;
+       let store = Ext.create('Proxmox.data.DiffStore', {
+           rstore: rstore,
            sorters: [],
            filters: [],
        });
index 11531a64a23edbc0c207595c93b6f6ae55e8e29d..14710a507f2f3c76b895be053a71c06a5c83501c 100644 (file)
@@ -10,7 +10,7 @@ Ext.define('Proxmox.Mixin.CBind', {
     cloneTemplates: function() {
        var me = this;
 
-       if (typeof me.cbindData == "function") {
+       if (typeof me.cbindData === "function") {
            me.cbindData = me.cbindData(me.initialConfig);
        }
        me.cbindData = me.cbindData || {};
@@ -21,7 +21,7 @@ Ext.define('Proxmox.Mixin.CBind', {
            }
            if (cname in me.cbindData) {
                let res = me.cbindData[cname];
-               if (typeof res == "function") {
+               if (typeof res === "function") {
                    return res(me.initialConfig);
                } else {
                    return res;