From: Thomas Lamprecht Date: Sat, 6 Jun 2020 13:05:48 +0000 (+0200) Subject: some more eslint fixes X-Git-Url: https://git.proxmox.com/?p=proxmox-widget-toolkit.git;a=commitdiff_plain;h=4f1b9b8c3ba38cf4184f8a605ac1ea856226a5aa some more eslint fixes manually adapted after eslint --fix call due to our damn weird indentation scheme Signed-off-by: Thomas Lamprecht --- diff --git a/data/ProxmoxProxy.js b/data/ProxmoxProxy.js index e9e15ac..e9e78f7 100644 --- a/data/ProxmoxProxy.js +++ b/data/ProxmoxProxy.js @@ -12,7 +12,6 @@ Ext.define('Proxmox.RestProxy', { afterRequest: function(request, success) { this.fireEvent('afterload', this, request, success); - return; }, constructor: function(config) { diff --git a/grid/ObjectGrid.js b/grid/ObjectGrid.js index cb28c24..4a722ac 100644 --- a/grid/ObjectGrid.js +++ b/grid/ObjectGrid.js @@ -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: [], }); diff --git a/mixin/CBind.js b/mixin/CBind.js index 11531a6..14710a5 100644 --- a/mixin/CBind.js +++ b/mixin/CBind.js @@ -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;