Apply the auto-fixable lint rules and the formatter, and drop the Vite build artifacts.
This commit is contained in:
+3
-3
@@ -24,7 +24,7 @@ export type AutoDiscoveryInfo = Record<string, unknown> & {
|
||||
|
||||
export const autoDiscovery = async (
|
||||
request: typeof fetch,
|
||||
server: string
|
||||
server: string,
|
||||
): Promise<[AutoDiscoveryError, undefined] | [undefined, AutoDiscoveryInfo]> => {
|
||||
const host = /^https?:\/\//.test(server) ? trimTrailingSlash(server) : `https://${server}`;
|
||||
const autoDiscoveryUrl = `${host}/.well-known/matrix/client`;
|
||||
@@ -89,7 +89,7 @@ export const autoDiscovery = async (
|
||||
content['m.homeserver'].base_url = trimTrailingSlash(baseUrl);
|
||||
if (content['m.identity_server']) {
|
||||
content['m.identity_server'].base_url = trimTrailingSlash(
|
||||
content['m.identity_server'].base_url
|
||||
content['m.identity_server'].base_url,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -102,7 +102,7 @@ export type SpecVersions = {
|
||||
};
|
||||
export const specVersions = async (
|
||||
request: typeof fetch,
|
||||
baseUrl: string
|
||||
baseUrl: string,
|
||||
): Promise<SpecVersions> => {
|
||||
const res = await request(`${trimTrailingSlash(baseUrl)}/_matrix/client/versions`);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user