mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 05:53:43 +00:00
eslint: change no-plusplus from warning to 2 and fix violations.
This commit is contained in:
@@ -89,7 +89,7 @@ Socket.prototype = {
|
||||
|
||||
_get_next_req_id: function Socket__get_next_req_id() {
|
||||
var req_id = page_params.event_queue_id + ':' + this._next_req_id_counter;
|
||||
this._next_req_id_counter++;
|
||||
this._next_req_id_counter += 1;
|
||||
return req_id;
|
||||
},
|
||||
|
||||
@@ -239,7 +239,7 @@ Socket.prototype = {
|
||||
};
|
||||
request.error = function (type, resp) {
|
||||
blueslip.info("Could not authenticate with server: " + resp.msg);
|
||||
that._connection_failures++;
|
||||
that._connection_failures += 1;
|
||||
that._try_to_reconnect({reason: 'auth_fail',
|
||||
wait_time: that._reconnect_wait_time()});
|
||||
};
|
||||
@@ -277,7 +277,7 @@ Socket.prototype = {
|
||||
|
||||
blueslip.info("SockJS connection lost. Attempting to reconnect soon."
|
||||
+ " (" + event.code.toString() + ", " + event.reason + ")");
|
||||
that._connection_failures++;
|
||||
that._connection_failures += 1;
|
||||
that._is_reconnecting = false;
|
||||
// We don't need to specify a reason because the Socket is already closed
|
||||
that._try_to_reconnect({wait_time: that._reconnect_wait_time()});
|
||||
|
||||
Reference in New Issue
Block a user