[pve-devel] [PATCH manager 3/5] ui/machine: fix eslint warning (unnecessary parentheses)

Stefan Reiter s.reiter at proxmox.com
Mon Mar 8 11:01:49 CET 2021


Signed-off-by: Stefan Reiter <s.reiter at proxmox.com>
---
 www/manager6/qemu/MachineEdit.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/manager6/qemu/MachineEdit.js b/www/manager6/qemu/MachineEdit.js
index 9dcdb012..87b405f5 100644
--- a/www/manager6/qemu/MachineEdit.js
+++ b/www/manager6/qemu/MachineEdit.js
@@ -16,7 +16,7 @@ Ext.define('PVE.qemu.MachineInputPanel', {
 	    let oldRec = store.findRecord('id', version.getValue(), 0, false, false, true);
 	    let type = value === 'q35' ? 'q35' : 'i440fx';
 	    store.clearFilter();
-	    store.addFilter(val => (val.data.id === 'latest' || val.data.type === type));
+	    store.addFilter(val => val.data.id === 'latest' || val.data.type === type);
 	    if (!me.getView().isWindows) {
 		version.setValue('latest');
 	    } else {
-- 
2.20.1






More information about the pve-devel mailing list