From 86518dbac5af56799dc015227f0b19c225cf8536 Mon Sep 17 00:00:00 2001 From: "P. Reis" Date: Fri, 10 May 2024 14:34:48 -0300 Subject: [PATCH] refactor(MuteListPolicy): shorthand private constructor --- src/policies/MuteListPolicy.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/policies/MuteListPolicy.ts b/src/policies/MuteListPolicy.ts index e234219..c069565 100644 --- a/src/policies/MuteListPolicy.ts +++ b/src/policies/MuteListPolicy.ts @@ -3,10 +3,7 @@ import { NostrEvent, NostrRelayOK, NPolicy, NStore } from '@nostrify/nostrify'; import { getTagSet } from '@/tags.ts'; export class MuteListPolicy implements NPolicy { - constructor(private pubkey: string, private store: NStore) { - this.store = store; - this.pubkey = pubkey; - } + constructor(private pubkey: string, private store: NStore) {} async call(event: NostrEvent): Promise { const allowEvent = ['OK', event.id, true, ''] as NostrRelayOK;