From 5a3ac9b1103adf3af5646f673059f5f259ea92ca Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 24 Oct 2023 13:57:39 +0200 Subject: [PATCH] utils: code style cleanup/reduction Signed-off-by: Thomas Lamprecht --- src/Utils.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Utils.js b/src/Utils.js index f269607..07c1601 100644 --- a/src/Utils.js +++ b/src/Utils.js @@ -527,12 +527,7 @@ utilities: { // Proxmox.Async.api2({ // ... // }).catch(Proxmox.Utils.alertResponseFailure); - alertResponseFailure: (response) => { - Ext.Msg.alert( - gettext('Error'), - response.htmlStatus || response.result.message, - ); - }, + alertResponseFailure: res => Ext.Msg.alert(gettext('Error') res.htmlStatus || res.result.message), checked_command: function(orig_cmd) { Proxmox.Utils.API2Request(