Skip to content

Commit 586881f

Browse files
committed
Linting
1 parent becc84e commit 586881f

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,5 +184,5 @@ module.exports = {
184184
}
185185
}
186186
],
187-
"ignorePatterns": [".eslintrc.js", "widget/**/*"],
187+
"ignorePatterns": [".eslintrc.js", "widget/**/*", "src/generate-signing-key.js"],
188188
};

src/Main.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,10 @@ export class Main {
11681168
throw Error(`Failed to start Media Proxy: ${err}`);
11691169
});
11701170
} else {
1171-
log.warn("Media Proxy not configured: media bridging to Slack won't work on servers requiring authenticated media (default since Synapse v1.120.0)");
1171+
log.warn(
1172+
"Media Proxy not configured: media bridging to Slack won't work on servers requiring authenticated media " +
1173+
"(default since Synapse v1.120.0)"
1174+
);
11721175
}
11731176

11741177

src/substitutions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ class Substitutions {
175175
}
176176
let url: string;
177177
if (main.mediaProxy) {
178-
url = await main.mediaProxy.generateMediaUrl(event.content.url).then(url => url.toString());
178+
url = await main.mediaProxy.generateMediaUrl(event.content.url).then(u => u.toString());
179179
} else {
180180
url = main.getUrlForMxc(event.content.url, main.encryptRoom);
181181
}

0 commit comments

Comments
 (0)