Skip to content

Commit a760c64

Browse files
[MM-956]: Removed fmt unused
1 parent 7df3d8b commit a760c64

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

server/plugin/webhook.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"crypto/sha1" //nolint:gosec // GitHub webhooks are signed using sha1 https://developer.github.com/webhooks/.
77
"encoding/hex"
88
"encoding/json"
9-
"fmt"
109
"html"
1110
"io"
1211
"net/http"
@@ -653,6 +652,7 @@ func (p *Plugin) postPushEvent(event *github.PushEvent) {
653652
repo := event.GetRepo()
654653

655654
subs := p.GetSubscribedChannelsForRepository(ConvertPushEventRepositoryToRepository(repo))
655+
656656
if len(subs) == 0 {
657657
return
658658
}
@@ -673,9 +673,11 @@ func (p *Plugin) postPushEvent(event *github.PushEvent) {
673673
if !sub.Pushes() {
674674
continue
675675
}
676+
676677
if p.excludeConfigOrgMember(event.GetSender(), sub) {
677678
continue
678679
}
680+
679681
post := p.makeBotPost(pushedCommitsMessage, "custom_git_push")
680682

681683
post.ChannelId = sub.ChannelID

0 commit comments

Comments
 (0)