Appease the linter
parent
e2fdeec71a
commit
10f4d6b419
|
@ -81,7 +81,6 @@ export default class AutoDiscoveryUtils {
|
||||||
*/
|
*/
|
||||||
static async validateServerConfigWithStaticUrls(
|
static async validateServerConfigWithStaticUrls(
|
||||||
homeserverUrl: string, identityUrl: string, syntaxOnly = false): ValidatedServerConfig {
|
homeserverUrl: string, identityUrl: string, syntaxOnly = false): ValidatedServerConfig {
|
||||||
|
|
||||||
if (!homeserverUrl) {
|
if (!homeserverUrl) {
|
||||||
throw newTranslatableError(_td("No homeserver URL provided"));
|
throw newTranslatableError(_td("No homeserver URL provided"));
|
||||||
}
|
}
|
||||||
|
@ -126,7 +125,6 @@ export default class AutoDiscoveryUtils {
|
||||||
*/
|
*/
|
||||||
static buildValidatedConfigFromDiscovery(
|
static buildValidatedConfigFromDiscovery(
|
||||||
serverName: string, discoveryResult, syntaxOnly=false): ValidatedServerConfig {
|
serverName: string, discoveryResult, syntaxOnly=false): ValidatedServerConfig {
|
||||||
|
|
||||||
if (!discoveryResult || !discoveryResult["m.homeserver"]) {
|
if (!discoveryResult || !discoveryResult["m.homeserver"]) {
|
||||||
// This shouldn't happen without major misconfiguration, so we'll log a bit of information
|
// This shouldn't happen without major misconfiguration, so we'll log a bit of information
|
||||||
// in the log so we can find this bit of codee but otherwise tell teh user "it broke".
|
// in the log so we can find this bit of codee but otherwise tell teh user "it broke".
|
||||||
|
|
Loading…
Reference in New Issue