aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--models/webhook.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/models/webhook.go b/models/webhook.go
index 7a42093b5a..85590c705a 100644
--- a/models/webhook.go
+++ b/models/webhook.go
@@ -584,14 +584,6 @@ func (t *HookTask) deliver() {
return
}
t.ResponseInfo.Body = string(p)
-
- switch t.Type {
- case SLACK:
- if t.ResponseInfo.Body != "ok" {
- log.Error(5, "slack failed with: %s", t.ResponseInfo.Body)
- t.IsSucceed = false
- }
- }
}
// DeliverHooks checks and delivers undelivered hooks.