]> git.proxmox.com Git - proxmox-widget-toolkit.git/blobdiff - Utils.js
Utils: fix jslint errors
[proxmox-widget-toolkit.git] / 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;
        }