From: Thomas Lamprecht Date: Thu, 22 Nov 2018 12:20:13 +0000 (+0100) Subject: Utils: fix jslint errors X-Git-Url: https://git.proxmox.com/?p=proxmox-widget-toolkit.git;a=commitdiff_plain;h=c5aaa502d368ab5a6b1be0bc058a9f8609ec895a Utils: fix jslint errors Signed-off-by: Thomas Lamprecht --- diff --git a/Utils.js b/Utils.js index b3664d9..be5f9c6 100644 --- a/Utils.js +++ b/Utils.js @@ -497,15 +497,16 @@ Ext.define('Proxmox.Utils', { utilities: { format_task_description: function(type, id) { var farray = Proxmox.Utils.task_desc_table[type]; + var text; if (!farray) { - var text = type; + text = type; if (id) { type += ' ' + id; } return text; } var prefix = farray[0]; - var text = farray[1]; + text = farray[1]; if (prefix) { return prefix + ' ' + id + ' - ' + text; }