1
0

chore(webhooks): simplify registering webhook events

This commit is contained in:
kolaente
2023-10-17 19:57:33 +02:00
parent ec4aa606e2
commit 1b82f26d3e
2 changed files with 18 additions and 20 deletions

View File

@ -72,10 +72,6 @@ func init() {
}
func RegisterEventForWebhook(event events.Event) {
if !config.WebhooksEnabled.GetBool() {
return
}
availableWebhookEventsLock.Lock()
defer availableWebhookEventsLock.Unlock()