Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
tadzik committed Jan 3, 2025
1 parent becc84e commit 586881f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,5 +184,5 @@ module.exports = {
}
}
],
"ignorePatterns": [".eslintrc.js", "widget/**/*"],
"ignorePatterns": [".eslintrc.js", "widget/**/*", "src/generate-signing-key.js"],
};
5 changes: 4 additions & 1 deletion src/Main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
);
}


Expand Down
2 changes: 1 addition & 1 deletion src/substitutions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 586881f

Please sign in to comment.