WTH nil is not propagated correctly ? got quantum nil if not doing this

This commit is contained in:
Alex 2020-02-18 17:25:23 +01:00
parent cf13f2b5af
commit b96f8a2016

View file

@ -247,7 +247,10 @@ func (mm *Mattermost) Send(event *Event) error {
}
_, resp := mm.conn.Client.CreatePost(post)
return resp.Error
if resp.Error != nil {
return resp.Error
}
return nil
}
func (mm *Mattermost) Close() {