1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-25 05:23:13 +03:00

Appease the linter

This commit is contained in:
Travis Ralston
2018-10-25 14:36:14 -06:00
parent 2cccb8b450
commit 568ff5a3f5
2 changed files with 2 additions and 4 deletions

View File

@@ -968,7 +968,8 @@ MatrixClient.prototype.joinRoom = function(roomIdOrAlias, opts, callback) {
} }
const path = utils.encodeUri("/join/$roomid", { $roomid: roomIdOrAlias}); const path = utils.encodeUri("/join/$roomid", { $roomid: roomIdOrAlias});
return self._http.authedRequest(undefined, "POST", path, queryString, data, reqOpts); return self._http.authedRequest(
undefined, "POST", path, queryString, data, reqOpts);
}).then(function(res) { }).then(function(res) {
const roomId = res.room_id; const roomId = res.room_id;
const syncApi = new SyncApi(self, self._clientOpts); const syncApi = new SyncApi(self, self._clientOpts);

View File

@@ -668,9 +668,6 @@ module.exports.MatrixHttpApi.prototype = {
* @param {function=} opts.bodyParser function to parse the body of the * @param {function=} opts.bodyParser function to parse the body of the
* response before passing it to the promise and callback. * response before passing it to the promise and callback.
* *
* @param (object=} opts.qsStringifyOptions options for stringifying the
* query string.
*
* @return {module:client.Promise} a promise which resolves to either the * @return {module:client.Promise} a promise which resolves to either the
* response object (if this.opts.onlyData is truthy), or the parsed * response object (if this.opts.onlyData is truthy), or the parsed
* body. Rejects * body. Rejects