mirror of https://github.com/keeweb/keeweb.git
fix: code linting
This commit is contained in:
parent
a425b9904b
commit
406e908bb5
|
@ -11,7 +11,10 @@ const Otp = function (url, params) {
|
|||
throw 'Empty secret';
|
||||
}
|
||||
|
||||
if (params.algorithm && ['SHA1', 'SHA256', 'SHA512'].indexOf(params.algorithm.toUpperCase()) < 0) {
|
||||
if (
|
||||
params.algorithm &&
|
||||
['SHA1', 'SHA256', 'SHA512'].indexOf(params.algorithm.toUpperCase()) < 0
|
||||
) {
|
||||
throw 'Bad algorithm: ' + params.algorithm;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue