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

Fix some linitng errors

This commit is contained in:
David Baker
2015-07-08 15:01:20 +01:00
parent f75453d5d5
commit 5e0d5a5b05

View File

@@ -144,10 +144,6 @@ module.exports.MatrixHttpApi.prototype = {
"Expected callback to be a function but got " + typeof callback
);
}
var queryParams = {
filename: file.name,
access_token: this.opts.accessToken
};
var defer = q.defer();
// browser-request doesn't support File objects because it deep-copies
// the options using JSON.parse(JSON.stringify(options)). Instead of
@@ -162,7 +158,7 @@ module.exports.MatrixHttpApi.prototype = {
var timeout_fn = function() {
xhr.abort();
cb(new Error('Timeout'));
}
};
xhr.timeout_timer = setTimeout(timeout_fn, 30000);