remove unnecessary trigraph

values['delete'] is always empty here, plus the code was buggy for
the case that it wasn't:

values['delete'] = values['delete'] ? ',group' : 'group';
                ^^^
         always overwrites values['delete'], even if not empty

So just drop it here.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2016-10-31 11:06:59 +01:00 committed by Dietmar Maurer
parent 52f2453864
commit b4167ff221

View File

@ -12,7 +12,7 @@ Ext.define('PVE.ha.VMResourceInputPanel', {
if (values.group === '') {
if (!me.create) {
values['delete'] = values['delete'] ? ',group' : 'group';
values['delete'] = 'group';
}
delete values.group;
}