Appease the linter

pull/21833/head
Travis Ralston 2019-10-07 12:46:14 +01:00
parent afaaa6774e
commit 495513028c
1 changed files with 4 additions and 1 deletions

View File

@ -195,7 +195,10 @@ export const RecaptchaAuthEntry = createReactClass({
const CaptchaForm = sdk.getComponent("views.auth.CaptchaForm");
let sitePublicKey;
if (!this.props.stageParams || !this.props.stageParams.public_key) {
errorText = _t("Missing captcha public key in homeserver configuration. Please report this to your homeserver administrator.");
errorText = _t(
"Missing captcha public key in homeserver configuration. Please report " +
"this to your homeserver administrator.",
);
} else {
sitePublicKey = this.props.stageParams.public_key;
}