Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit e499b3a

Browse files
committed
fix over-linting
1 parent 5769f4e commit e499b3a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

js/start.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ app.serverConfigs.fetch().done(() => {
129129

130130
// migrate any existing connection from the
131131
// old single config set-up (_serverConfig-1)
132-
if (oldConfig == localStorage['_serverConfig-1']) {
132+
if (oldConfig = localStorage['_serverConfig-1']) { // eslint-disable-line no-cond-assign
133133
oldConfig = JSON.parse(oldConfig);
134134

135135
// don't create a ported connection if it's the same as the default one

js/views/chatVw.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ module.exports = baseVw.extend({
206206
this.markConvoAsRead(model.get('guid'));
207207

208208
// mark as read on chat head
209-
if (convoMd == this.chatConversationsCl.get(model.get('guid'))) {
209+
if (convoMd = this.chatConversationsCl.get(model.get('guid'))) { // eslint-disable-line no-cond-assign
210210
convoMd.set('unread', 0);
211211
}
212212

@@ -281,7 +281,7 @@ module.exports = baseVw.extend({
281281
});
282282

283283
// update chat head
284-
if (chatHeadMd == this.chatConversationsCl.findWhere({ guid: convoMd.get('guid') })) {
284+
if (chatHeadMd = this.chatConversationsCl.findWhere({ guid: convoMd.get('guid') })) { // eslint-disable-line no-cond-assign
285285
chatHeadMd.set({
286286
last_message: msg,
287287
unread: 0,
@@ -364,7 +364,7 @@ module.exports = baseVw.extend({
364364
}
365365

366366
// update chat head
367-
if (conversationMd == this.chatConversationsCl.get(msg.sender)) {
367+
if (conversationMd = this.chatConversationsCl.get(msg.sender)) { // eslint-disable-line no-cond-assign
368368
conversationMd.set({
369369
last_message: msg.message,
370370
unread: openlyChatting && document.hasFocus() ? 0 : conversationMd.get('unread') + 1,

js/views/statusBarVw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ module.exports = baseVw.extend({
7070

7171
if (typeof msg === 'string') msg = { msg: msg };
7272

73-
if (errs == md.validate(msg)) {
73+
if (errs = md.validate(msg)) { // eslint-disable-line no-cond-assign
7474
for (var err in errs) {
7575
if (errs.hasOwnProperty(err)){
7676
throw new Error(errs[err]);

0 commit comments

Comments
 (0)