make jslint happier

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2019-04-16 07:46:59 +00:00
parent 1b16f7138b
commit f92943e2f8

View File

@ -562,12 +562,13 @@ Ext.define('PVE.Parser', { statics: {
}, },
parseTfaType: function(value) { parseTfaType: function(value) {
/*jslint confusion: true*/
var match; var match;
if (!value || !value.length) { if (!value || !value.length) {
return undefined; return undefined;
} else if (value === 'x!oath') { } else if (value === 'x!oath') {
return 'totp'; return 'totp';
} else if (match = value.match(/^x!(.+)$/)) { } else if (!!(match = value.match(/^x!(.+)$/))) {
return match[1]; return match[1];
} else { } else {
return 1; return 1;