From 586881fa6c0f17b03ea4cc05105aae3aabb545c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tadeusz=20=E2=80=9Etadzik=E2=80=9D=20So=C5=9Bnierz?= Date: Fri, 3 Jan 2025 15:38:10 +0100 Subject: [PATCH] Linting --- .eslintrc.js | 2 +- src/Main.ts | 5 ++++- src/substitutions.ts | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index e6b76939..bc9fb706 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -184,5 +184,5 @@ module.exports = { } } ], - "ignorePatterns": [".eslintrc.js", "widget/**/*"], + "ignorePatterns": [".eslintrc.js", "widget/**/*", "src/generate-signing-key.js"], }; diff --git a/src/Main.ts b/src/Main.ts index ffec9abf..d8871c82 100644 --- a/src/Main.ts +++ b/src/Main.ts @@ -1168,7 +1168,10 @@ export class Main { throw Error(`Failed to start Media Proxy: ${err}`); }); } else { - log.warn("Media Proxy not configured: media bridging to Slack won't work on servers requiring authenticated media (default since Synapse v1.120.0)"); + log.warn( + "Media Proxy not configured: media bridging to Slack won't work on servers requiring authenticated media " + + "(default since Synapse v1.120.0)" + ); } diff --git a/src/substitutions.ts b/src/substitutions.ts index f6df5f99..0f7ff836 100644 --- a/src/substitutions.ts +++ b/src/substitutions.ts @@ -175,7 +175,7 @@ class Substitutions { } let url: string; if (main.mediaProxy) { - url = await main.mediaProxy.generateMediaUrl(event.content.url).then(url => url.toString()); + url = await main.mediaProxy.generateMediaUrl(event.content.url).then(u => u.toString()); } else { url = main.getUrlForMxc(event.content.url, main.encryptRoom); }