[IMP] test_lint, *: eslint remove caughtErrorsIgnorePattern from no-unused-vars
Unused catch block arguments are now forbidden even when prefixed with an underscore: if the argument on the catch block is not needed, the use of the optional catch binding is enforced. Part-of: odoo/odoo#105433
This commit is contained in:
@@ -47,7 +47,7 @@ const ReCaptcha = Class.extend({
|
||||
return {
|
||||
token: await window.grecaptcha.execute(this._publicKey, {action: action})
|
||||
};
|
||||
} catch (_e) {
|
||||
} catch {
|
||||
return {
|
||||
error: _t("The recaptcha site key is invalid."),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user