Appease the linter

This commit is contained in:
Travis Ralston 2019-02-07 21:26:09 -07:00
parent 38ea8d30db
commit aac94bc757
2 changed files with 2 additions and 2 deletions

View File

@ -178,7 +178,7 @@ export async function doFederatedApiCall(method: string, serverName: string, end
});
}
export async function doClientApiCall(method: string, endpoint: string, query?: object, body?: object | Buffer, contentType: string = "application/octet-stream"): Promise<any> {
export async function doClientApiCall(method: string, endpoint: string, query?: object, body?: object | Buffer, contentType = "application/octet-stream"): Promise<any> {
let url = config.homeserver.clientServerUrl;
if (url.endsWith("/")) url = url.substring(0, url.length - 1);
LogService.info("matrix", "Doing client API call: " + url + endpoint);

View File

@ -38,7 +38,7 @@
"no-empty": false,
"no-eval": true,
"no-inferrable-types": true,
"no-shadowed-variable": true,
"no-shadowed-variable": false,
"no-string-literal": false,
"no-switch-case-fall-through": true,
"no-trailing-whitespace": true,