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,8 +247,11 @@ func (mm *Mattermost) Send(event *Event) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
_, resp := mm.conn.Client.CreatePost(post)
|
_, resp := mm.conn.Client.CreatePost(post)
|
||||||
|
if resp.Error != nil {
|
||||||
return resp.Error
|
return resp.Error
|
||||||
}
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
func (mm *Mattermost) Close() {
|
func (mm *Mattermost) Close() {
|
||||||
mm.conn.WsQuit = true
|
mm.conn.WsQuit = true
|
||||||
|
|
Loading…
Reference in a new issue