You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-23 17:02:25 +03:00
Apply new linting rules
This commit is contained in:
@@ -20,9 +20,9 @@ limitations under the License.
|
||||
* @module http-api
|
||||
*/
|
||||
|
||||
import {parse as parseContentType} from "content-type";
|
||||
import { parse as parseContentType } from "content-type";
|
||||
import * as utils from "./utils";
|
||||
import {logger} from './logger';
|
||||
import { logger } from './logger';
|
||||
|
||||
// we use our own implementation of setTimeout, so that if we get suspended in
|
||||
// the middle of a /sync, we cancel the sync as soon as we awake, rather than
|
||||
@@ -344,7 +344,7 @@ MatrixHttpApi.prototype = {
|
||||
promise = this.authedRequest(
|
||||
opts.callback, "POST", "/upload", queryParams, body, {
|
||||
prefix: "/_matrix/media/r0",
|
||||
headers: {"Content-Type": contentType},
|
||||
headers: { "Content-Type": contentType },
|
||||
json: false,
|
||||
bodyParser: bodyParser,
|
||||
},
|
||||
@@ -862,7 +862,6 @@ function parseErrorResponse(response, body) {
|
||||
return err;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* extract the Content-Type header from the response object, and
|
||||
* parse it to a `{type, parameters}` object.
|
||||
|
||||
Reference in New Issue
Block a user