Make some of Mjolnir's banlist handling methods private

This commit is contained in:
gnuxie 2022-02-15 13:23:55 +00:00
parent 4bc33ea0af
commit 9fc1016eb2

View File

@ -614,7 +614,7 @@ export class Mjolnir {
}
}
public async buildWatchedBanLists() {
private async buildWatchedBanLists() {
this.banLists = [];
const joinedRooms = await this.client.getJoinedRooms();
@ -767,7 +767,7 @@ export class Mjolnir {
* @param banList The `BanList` which we will check for changes and apply them to all protected rooms.
* @returns When all of the protected rooms have been updated.
*/
public async syncWithBanList(banList: BanList): Promise<void> {
private async syncWithBanList(banList: BanList): Promise<void> {
const changes = await banList.updateList();
let hadErrors = false;