Skip to content

Commit

Permalink
Update src/service/deletion-repeater.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
MikuroXina committed Jul 23, 2022
1 parent 7b03dde commit 79cd255
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/service/deletion-repeater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,7 @@ export class DeletionRepeater<M extends DeletionObservable>
* メッセージを無視するかどうかを判定する述語。
* この述語がtrueを返した場合、内容を復唱しない。
*/
private isIgnoreTarget: (content: string) => boolean;

constructor(isIgnoreTarget: (content: string) => boolean) {
this.isIgnoreTarget = isIgnoreTarget;
}
constructor(private readonly isIgnoreTarget: (content: string) => boolean) {}

async on(event: MessageEvent, message: M): Promise<void> {
if (event !== 'DELETE') {
Expand Down

0 comments on commit 79cd255

Please sign in to comment.