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

@@ -239,7 +239,7 @@ function edit_message (row, raw_content) {
// since otherwise there is a noticeable lag
message_edit_countdown_timer.text(timer_text(seconds_left));
var countdown_timer = setInterval(function () {
if (--seconds_left <= 0) {
if (seconds_left - 1 <= 0) {
clearInterval(countdown_timer);
message_edit_content.prop("readonly", "readonly");
if (message.type === 'stream') {