Commit c29f7902 authored by zauberstuhl's avatar zauberstuhl

Fix comparing hook urls

parent 0c9ea3fd
......@@ -127,8 +127,10 @@ func resultPage(w http.ResponseWriter, r *http.Request) {
}
var hookExists = false
hookURL, _ := newHook.Config["url"].(string)
for _, hook := range hooks {
if hook.GetURL() == newHook.Config["url"].(string) {
curHookURL, _ := hook.Config["url"].(string)
if hookURL == curHookURL {
hookExists = true
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment