mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-12 12:39:14 +00:00
make jslint happier
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
1b16f7138b
commit
f92943e2f8
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user