You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-29 16:43:09 +03:00
lint
This commit is contained in:
@@ -2430,7 +2430,9 @@ MatrixClient.prototype.registerRequest = function(data, kind, callback) {
|
|||||||
// overwrite the parameters if any are passed, so it's important
|
// overwrite the parameters if any are passed, so it's important
|
||||||
// that if the app give no data, we send no data.
|
// that if the app give no data, we send no data.
|
||||||
var number_of_params = Object.keys(data).length;
|
var number_of_params = Object.keys(data).length;
|
||||||
if (data.auth) --number_of_params;
|
if (data.auth) {
|
||||||
|
--number_of_params;
|
||||||
|
}
|
||||||
if (number_of_params > 0) {
|
if (number_of_params > 0) {
|
||||||
request_data = {
|
request_data = {
|
||||||
device_id: this.deviceId,
|
device_id: this.deviceId,
|
||||||
|
|||||||
Reference in New Issue
Block a user