1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-09-03 08:42:03 +03:00

Appease closure linter.

This commit is contained in:
Kegan Dougal
2015-06-05 14:54:06 +01:00
parent 735eefcb6d
commit 6f4b600c0b
4 changed files with 7 additions and 6 deletions

View File

@@ -67,7 +67,7 @@ module.exports.MatrixClient.prototype = {
* @param {string} options.name The name to give this room.
* @param {string} options.topic The topic to give this room.
* @param {module:client.callback} callback Optional.
* @return {module:client.Promise} Resolves: <code>{room_id: {string},
* @return {module:client.Promise} Resolves: <code>{room_id: {string},
* room_alias: {string(opt)}}</code>
* @return {module:http-api.MatrixError} Rejects: with an error response.
*/

View File

@@ -270,8 +270,8 @@ module.exports.MatrixHttpApi.prototype = {
var requestCallback = function(defer, userDefinedCallback, onlyData) {
userDefinedCallback = userDefinedCallback || function(){};
userDefinedCallback = userDefinedCallback || function() {};
return function(err, response, body) {
if (!err && response.statusCode >= 400) {
err = new module.exports.MatrixError(body);
@@ -308,4 +308,5 @@ module.exports.MatrixError = function MatrixError(errorJson) {
this.data = errorJson;
};
module.exports.MatrixError.prototype = Object.create(Error.prototype);
module.exports.MatrixError.prototype.constructor = module.exports.MatrixError;
/** */
module.exports.MatrixError.prototype.constructor = module.exports.MatrixError;

View File

@@ -73,4 +73,4 @@ module.exports.createClient = function(opts) {
* @param {Object} response The HTTP response which consists of
* <code>{statusCode: {Number}, headers: {Object}}</code>
* @param {Object} body The parsed HTTP response body.
*/
*/

View File

@@ -77,7 +77,7 @@ module.exports.MatrixEvent.prototype = {
*/
getAge: function() {
return this.event.age;
},
},
/**
* Get the event state_key if it has one. This will return <code>undefined