WTH nil is not propagated correctly ? got quantum nil if not doing this
This commit is contained in:
parent
cf13f2b5af
commit
b96f8a2016
1 changed files with 4 additions and 1 deletions
|
@ -247,7 +247,10 @@ func (mm *Mattermost) Send(event *Event) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
_, resp := mm.conn.Client.CreatePost(post)
|
_, resp := mm.conn.Client.CreatePost(post)
|
||||||
return resp.Error
|
if resp.Error != nil {
|
||||||
|
return resp.Error
|
||||||
|
}
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (mm *Mattermost) Close() {
|
func (mm *Mattermost) Close() {
|
||||||
|
|
Loading…
Reference in a new issue