fix lint errors introduced by NFS version option patch

fixes commit d3abac4335

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2019-05-16 09:35:31 +02:00
parent 44d386a08e
commit a671b6b5f9

View File

@ -1,3 +1,4 @@
/*jslint confusion: true*/
Ext.define('PVE.storage.NFSScan', {
extend: 'Ext.form.field.ComboBox',
alias: 'widget.pveNFSScan',
@ -96,8 +97,8 @@ Ext.define('PVE.storage.NFSInputPanel', {
var res = values.options;
me.options = values.options.split(',');
me.options.forEach(function(item) {
var match;
if (match = item.match(/^vers=(.*)$/)) {
var match = item.match(/^vers=(.*)$/);
if (match) {
values.nfsversion = match[1];
}
});
@ -170,7 +171,7 @@ Ext.define('PVE.storage.NFSInputPanel', {
['4', '4'],
['4.1', '4.1'],
['4.2', '4.2']
],
]
}
];