fix go vet issue in notification.go

This commit is contained in:
Tan Jiang 2016-03-01 18:37:51 +08:00
parent be64407e54
commit 1a0125b2ac

View File

@ -50,7 +50,7 @@ func (n *NotificationHandler) Post() {
for _, e := range notification.Events {
matched, err = regexp.MatchString(manifestPattern, e.Target.MediaType)
if err != nil {
beego.Error("Failed to match the media type against pattern, error: %v", err)
beego.Error("Failed to match the media type against pattern, error: ", err)
matched = false
}
if matched && strings.HasPrefix(e.Request.UserAgent, "docker") {