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

No point throwing the exception if we return the original promise

This commit is contained in:
David Baker
2016-03-15 16:17:41 +00:00
parent 39a5765888
commit 0f38764709

View File

@@ -278,7 +278,6 @@ module.exports.MatrixHttpApi.prototype = {
if (err.errcode == 'M_UNKNOWN_TOKEN') {
self.event_emitter.emit("Session.logged_out");
}
throw err;
});
// return the original promise, otherwise tests break due to it having to
// go around the event loop one more time to process the result of the request