1
0
Fork 0

chore(backend): Remove lint

This commit is contained in:
joostdecock 2023-11-05 13:02:48 +01:00
parent 5422abdf86
commit 4419e0e535

View file

@ -1519,7 +1519,7 @@ UserModel.prototype.guardedMfaUpdate = async function ({ body, user, ip }) {
this.clear.data.mfaScratchCodes
)
let result, mfaScratchCodes
if (Array.isArray(check)) [result, mfaScratchCodes] = check
if (Array.isArray(check)) [result] = check
else result = check
if (result) {
/*
@ -1557,7 +1557,7 @@ UserModel.prototype.guardedMfaUpdate = async function ({ body, user, ip }) {
*/
const check = await this.mfa.verify(body.token, this.clear.mfaSecret, false)
let result, mfaScratchCodes
if (Array.isArray(check)) [result, mfaScratchCodes] = check
if (Array.isArray(check)) [result] = check
else result = check
if (body.secret === this.clear.mfaSecret && result) {
/*