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
Style checks
This commit is contained in:
@@ -394,17 +394,19 @@ module.exports.MatrixHttpApi.prototype = {
|
|||||||
}
|
}
|
||||||
catch (ex) {
|
catch (ex) {
|
||||||
defer.reject(ex);
|
defer.reject(ex);
|
||||||
if (callback) callback(ex);
|
if (callback) {
|
||||||
|
callback(ex);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return defer.promise;
|
return defer.promise;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Returns a callback that can be invoked by an HTTP request on completion,
|
* Returns a callback that can be invoked by an HTTP request on completion,
|
||||||
* that will either resolve or reject the given defer as well as invoke the
|
* that will either resolve or reject the given defer as well as invoke the
|
||||||
* given userDefinedCallback (if any).
|
* given userDefinedCallback (if any).
|
||||||
*
|
*
|
||||||
* If onlyData is true, the defer/callback is invoked with the body of the
|
* If onlyData is true, the defer/callback is invoked with the body of the
|
||||||
* response, otherwise the result code.
|
* response, otherwise the result code.
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user