[pbs-devel] [PATCH proxmox-backup v5 09/10] ui: gcview: fix eslint warnings

Lukas Wagner l.wagner at proxmox.com
Thu Apr 18 12:17:05 CEST 2024


The ternary ? operator should be at the start of the line if the
the expression is split into multiple lines.

Signed-off-by: Lukas Wagner <l.wagner at proxmox.com>
---
 www/config/GCView.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/www/config/GCView.js b/www/config/GCView.js
index 75bf60a4..852dca5d 100644
--- a/www/config/GCView.js
+++ b/www/config/GCView.js
@@ -212,8 +212,8 @@ Ext.define('PBS.config.GCJobView', {
 	{
 	    header: gettext('Removed Data'),
 	    dataIndex: 'removed-bytes',
-	    renderer: (value) => value !== undefined ?
-		Proxmox.Utils.format_size(value, true) : "-",
+	    renderer: (value) => value !== undefined
+		? Proxmox.Utils.format_size(value, true) : "-",
 	    sortable: false,
 	    minWidth: 85,
 	    flex: 1,
@@ -221,8 +221,8 @@ Ext.define('PBS.config.GCJobView', {
 	{
 	    header: gettext('Pending Data'),
 	    dataIndex: 'pending-bytes',
-	    renderer: (value) => value !== undefined ?
-		Proxmox.Utils.format_size(value, true) : "-",
+	    renderer: (value) => value !== undefined
+		? Proxmox.Utils.format_size(value, true) : "-",
 	    sortable: false,
 	    minWidth: 80,
 	    flex: 3,
-- 
2.39.2





More information about the pbs-devel mailing list