You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-09-01 21:21:58 +03:00
Appease closure linter.
This commit is contained in:
@@ -270,7 +270,7 @@ module.exports.MatrixHttpApi.prototype = {
|
|||||||
|
|
||||||
|
|
||||||
var requestCallback = function(defer, userDefinedCallback, onlyData) {
|
var requestCallback = function(defer, userDefinedCallback, onlyData) {
|
||||||
userDefinedCallback = userDefinedCallback || function(){};
|
userDefinedCallback = userDefinedCallback || function() {};
|
||||||
|
|
||||||
return function(err, response, body) {
|
return function(err, response, body) {
|
||||||
if (!err && response.statusCode >= 400) {
|
if (!err && response.statusCode >= 400) {
|
||||||
@@ -308,4 +308,5 @@ module.exports.MatrixError = function MatrixError(errorJson) {
|
|||||||
this.data = errorJson;
|
this.data = errorJson;
|
||||||
};
|
};
|
||||||
module.exports.MatrixError.prototype = Object.create(Error.prototype);
|
module.exports.MatrixError.prototype = Object.create(Error.prototype);
|
||||||
|
/** */
|
||||||
module.exports.MatrixError.prototype.constructor = module.exports.MatrixError;
|
module.exports.MatrixError.prototype.constructor = module.exports.MatrixError;
|
Reference in New Issue
Block a user