Fix some eslint errors from previous merges

This commit is contained in:
Veeck
2019-06-14 14:03:07 +02:00
parent c5383557b5
commit 36400c0a83
6 changed files with 8 additions and 10 deletions

View File

@@ -273,13 +273,13 @@ Module.register("newsfeed",{
newsItems.forEach(value => {
if (this.newsItems.findIndex(value1 => value1 === value) === -1) {
// Add item to updated items list
updatedItems.push(value)
updatedItems.push(value);
}
});
// check if updated items exist, if so and if we should broadcast these updates, then lets do so
if (this.config.broadcastNewsUpdates && updatedItems.length > 0) {
this.sendNotification("NEWS_FEED_UPDATE", {items: updatedItems})
this.sendNotification("NEWS_FEED_UPDATE", {items: updatedItems});
}
this.newsItems = newsItems;