Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Half-Shot committed Aug 8, 2023
1 parent 008c5ee commit 185c32c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bridge/AdminRoomHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ class ServerRequiredError extends Error {
const USER_FEATURES = ["mentions"];
export class AdminRoomHandler {
private readonly botUser: MatrixUser;
private readonly roomIdsExpectingCertFp = new Map<string, (certificate: string) => void>();
private readonly roomIdsExpectingCertFp: Map<string, (certificate: string) => void> = new Map();
constructor(private ircBridge: IrcBridge, private matrixHandler: MatrixHandler) {
this.botUser = new MatrixUser(ircBridge.appServiceUserId, undefined, false);
}
Expand Down Expand Up @@ -316,7 +316,8 @@ export class AdminRoomHandler {
req.log.info(`${sender} is attempting to store a cert for ${server.domain}`);
await this.ircBridge.sendMatrixAction(
adminRoom, this.botUser, new MatrixAction(
ActionType.Notice, `Please enter your certificate and private key (without formatting) for ${server.getReadableName()}.`
ActionType.Notice,
`Please enter your certificate and private key (without formatting) for ${server.getReadableName()}.`
)
);
let certfp: string;
Expand Down Expand Up @@ -676,7 +677,6 @@ export class AdminRoomHandler {
const server = this.extractServerFromArgs(args);

const domain = server.domain;
const store = this.ircBridge.getStore();
let notice;

try {
Expand Down

0 comments on commit 185c32c

Please sign in to comment.