refactor(MuteListPolicy): shorthand private constructor

This commit is contained in:
P. Reis 2024-05-10 14:34:48 -03:00
parent ebeec2ccba
commit 86518dbac5
1 changed files with 1 additions and 4 deletions

View File

@ -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<NostrRelayOK> {
const allowEvent = ['OK', event.id, true, ''] as NostrRelayOK;