lint plus constant fix

pull/475/head
Ryan Tharp 6 years ago
parent 2ca23db141
commit f093490bec

@ -369,7 +369,10 @@ class LokiPublicChannelAPI {
include_annotations: 1, include_annotations: 1,
}, },
}); });
if (!res.err && res.response && res.response.data.annotations && if (
!res.err &&
res.response &&
res.response.data.annotations &&
res.response.data.annotations.length res.response.data.annotations.length
) { ) {
res.response.data.annotations.forEach(note => { res.response.data.annotations.forEach(note => {
@ -402,7 +405,7 @@ class LokiPublicChannelAPI {
} }
setTimeout(() => { setTimeout(() => {
this.pollForDeletions(); this.pollForDeletions();
}, DELETION_POLL_EVERY); }, PUBLICCHAT_DELETION_POLL_EVERY);
} }
async pollOnceForDeletions() { async pollOnceForDeletions() {
@ -454,7 +457,7 @@ class LokiPublicChannelAPI {
} }
setTimeout(() => { setTimeout(() => {
this.pollForMessages(); this.pollForMessages();
}, GROUPCHAT_POLL_EVERY); }, PUBLICCHAT_MSG_POLL_EVERY);
} }
async pollOnceForMessages() { async pollOnceForMessages() {

Loading…
Cancel
Save