From c78243156ba572d83e1ffcdca36541731fba46d5 Mon Sep 17 00:00:00 2001
From: Sorunome <mail@sorunome.de>
Date: Thu, 25 Oct 2018 19:50:04 +0200
Subject: [PATCH] fix lint

---
 src/channelsyncroniser.ts | 3 ++-
 tools/chanfix.ts          | 4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/channelsyncroniser.ts b/src/channelsyncroniser.ts
index 3078a61..bb0939a 100644
--- a/src/channelsyncroniser.ts
+++ b/src/channelsyncroniser.ts
@@ -179,7 +179,8 @@ export class ChannelSyncroniser {
             }
             
             const oldIconUrl = remoteRoom.remote.get("discord_iconurl");
-            if (remoteRoom.remote.get("update_icon") && oldIconUrl !== iconUrl) { // no force on icon update as we don't want to duplicate ALL the icons
+            // no force on icon update as we don't want to duplicate ALL the icons
+            if (remoteRoom.remote.get("update_icon") && oldIconUrl !== iconUrl) {
                 log.verbose(`Channel ${mxid} icon should be updated`);
                 if (iconUrl !== null) {
                     singleChannelState.iconUrl = iconUrl;
diff --git a/tools/chanfix.ts b/tools/chanfix.ts
index 706446f..4c57c85 100644
--- a/tools/chanfix.ts
+++ b/tools/chanfix.ts
@@ -114,8 +114,8 @@ bridge.loadDatabases().catch((e) => {
         if (entry.remote.get("plumbed")) {
             return; // skipping plumbed rooms
         }
-        const update_icon = entry.remote.get("update_icon");
-        if (update_icon !== undefined && update_icon !== null) {
+        const updateIcon = entry.remote.get("update_icon");
+        if (updateIcon !== undefined && updateIcon !== null) {
             return; // skipping because something was set manually
         }
         entry.remote.set("update_icon", true);
-- 
GitLab