Skip to content

Commit

Permalink
Update chat.js, put statement in a curly
Browse files Browse the repository at this point in the history
  • Loading branch information
KyrunaKJ authored Nov 24, 2024
1 parent c399e1c commit c2638fa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions assets/chat/js/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -762,8 +762,10 @@ class Chat {
}

addMessage(message, win = null) {
// eslint-disable-next-line no-param-reassign, curly
if (win === null) win = this.mainwindow;
if (win === null) {
// eslint-disable-next-line no-param-reassign
win = this.mainwindow;
}

// Break the current combo if this message is not an emote
// We don't need to check what type the current message is, we just know that its a new message, so the combo is invalid.
Expand Down

0 comments on commit c2638fa

Please sign in to comment.