Skip to content

Commit

Permalink
refactor: Remove useless comments
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed Sep 10, 2022
1 parent 79fa9f1 commit 0a8e2ad
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion pkg/webhook/amqp.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"github.com/streadway/amqp"
)

// AMQPHandler handle exif message
func (a *App) AMQPHandler(_ context.Context, message amqp.Delivery) error {
var webhook provider.Webhook

Expand Down
3 changes: 0 additions & 3 deletions pkg/webhook/crud.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ func (a *App) generateID() (string, error) {
}
}

// List webhooks
func (a *App) List() (webhooks []provider.Webhook) {
a.RLock()
defer a.RUnlock()
Expand All @@ -42,7 +41,6 @@ func (a *App) List() (webhooks []provider.Webhook) {
return webhooks
}

// Create a webhook
func (a *App) Create(ctx context.Context, pathname string, recursive bool, kind provider.WebhookKind, url string, types []provider.EventType) (string, error) {
var id string

Expand Down Expand Up @@ -77,7 +75,6 @@ func (a *App) Create(ctx context.Context, pathname string, recursive bool, kind
})
}

// Delete a webhook
func (a *App) Delete(ctx context.Context, id string) error {
return a.Exclusive(ctx, a.amqpExclusiveRoutingKey, semaphoreDuration, func(_ context.Context) error {
return a.delete(ctx, id)
Expand Down
1 change: 0 additions & 1 deletion pkg/webhook/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (

const amqpThumbnailDiscordDelay = 10 * time.Second

// EventConsumer handle event pushed to the event bus
func (a *App) EventConsumer(ctx context.Context, event provider.Event) {
a.RLock()
defer a.RUnlock()
Expand Down

0 comments on commit 0a8e2ad

Please sign in to comment.