1
0
Fork 0

chore: Remove lint

This commit is contained in:
joostdecock 2023-11-12 12:22:05 +01:00
parent ce7965424d
commit c79b580512

View file

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