From c5aaa502d368ab5a6b1be0bc058a9f8609ec895a Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 22 Nov 2018 13:20:13 +0100 Subject: [PATCH] Utils: fix jslint errors Signed-off-by: Thomas Lamprecht --- Utils.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; } -- 2.39.2