]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
Utils: fix jslint errors
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 22 Nov 2018 12:20:13 +0000 (13:20 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 22 Nov 2018 12:20:25 +0000 (13:20 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Utils.js

index b3664d9f560d66f6f8e32c83138895e968bff8b6..be5f9c6362399ee381e80eb2a7706f3d7f05abfc 100644 (file)
--- 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;
        }