style: reenable switch check

This commit is contained in:
TheFox0x7 2024-07-17 19:19:36 +02:00
parent adf4dcdbbf
commit 8322882265
No known key found for this signature in database
GPG key ID: 6CA33903484AF7C2
19 changed files with 29 additions and 43 deletions

View file

@ -164,8 +164,7 @@ func (t telegramConvertor) PullRequest(p *api.PullRequestPayload) (TelegramPaylo
// Review implements PayloadConvertor Review method
func (t telegramConvertor) Review(p *api.PullRequestPayload, event webhook_module.HookEventType) (TelegramPayload, error) {
var text, attachmentText string
switch p.Action {
case api.HookIssueReviewed:
if p.Action == api.HookIssueReviewed {
action, err := parseHookPullRequestEventType(event)
if err != nil {
return TelegramPayload{}, err