Skip to content

Commit

Permalink
Filter empty hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardobl committed Apr 17, 2024
1 parent 1042916 commit 4a2bea5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WebHooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
export default class WebHooks {
hooks: string[];
constructor(hooks: string[]) {
this.hooks = hooks;
this.hooks = hooks.filter((hook) => hook )
}

async call(obj: any) {
Expand Down

0 comments on commit 4a2bea5

Please sign in to comment.