eslint: change no-plusplus from warning to 2 and fix violations.

This commit is contained in:
kevv87
2016-11-30 18:05:04 +00:00
committed by Tim Abbott
parent c90da24541
commit e6369fc29b
23 changed files with 41 additions and 41 deletions

View File

@@ -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()});