From 00973a1ee88872361ef261e1eaa61aa5113d4595 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Thu, 4 Jul 2019 17:00:09 -0600 Subject: [PATCH] Appease the linter --- src/components/structures/auth/SoftLogout.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/structures/auth/SoftLogout.js b/src/components/structures/auth/SoftLogout.js index 273fcec6b2..e01be3c1f0 100644 --- a/src/components/structures/auth/SoftLogout.js +++ b/src/components/structures/auth/SoftLogout.js @@ -23,7 +23,7 @@ import Modal from '../../../Modal'; import {ValidatedServerConfig} from "../../../utils/AutoDiscoveryUtils"; import SdkConfig from "../../../SdkConfig"; import MatrixClientPeg from "../../../MatrixClientPeg"; -import Login, {sendLoginRequest} from "../../../Login"; +import {sendLoginRequest} from "../../../Login"; const LOGIN_VIEW = { LOADING: 1, @@ -86,6 +86,8 @@ export default class SoftLogout extends React.Component { }; async _initLogin() { + // Note: we don't use the existing Login class because it is heavily flow-based. We don't + // care about login flows here, unless it is the single flow we support. const client = MatrixClientPeg.get(); const loginViews = (await client.loginFlows()).flows.map(f => FLOWS_TO_VIEWS[f.type]); @@ -153,7 +155,7 @@ export default class SoftLogout extends React.Component { let error = null; if (this.state.errorText) { - error = {this.state.errorText} + error = {this.state.errorText}; } return (