Utils: fix jslint errors

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2018-11-22 13:20:13 +01:00
parent 9367da29d2
commit c5aaa502d3

View File

@ -497,15 +497,16 @@ Ext.define('Proxmox.Utils', { utilities: {
format_task_description: function(type, id) { format_task_description: function(type, id) {
var farray = Proxmox.Utils.task_desc_table[type]; var farray = Proxmox.Utils.task_desc_table[type];
var text;
if (!farray) { if (!farray) {
var text = type; text = type;
if (id) { if (id) {
type += ' ' + id; type += ' ' + id;
} }
return text; return text;
} }
var prefix = farray[0]; var prefix = farray[0];
var text = farray[1]; text = farray[1];
if (prefix) { if (prefix) {
return prefix + ' ' + id + ' - ' + text; return prefix + ' ' + id + ' - ' + text;
} }