diff options
author | Alex Auvolat <alex@adnab.me> | 2020-02-18 17:25:23 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-02-18 17:25:23 +0100 |
commit | b96f8a20169f2fb399fc756df4a72e14d82cf7fa (patch) | |
tree | 5c4bc3e44dd9ff49f1431a8d456e8442e8352842 | |
parent | cf13f2b5af290c69bc4f1a8184b1dbe19225b36e (diff) | |
download | easybridge-b96f8a20169f2fb399fc756df4a72e14d82cf7fa.tar.gz easybridge-b96f8a20169f2fb399fc756df4a72e14d82cf7fa.zip |
WTH nil is not propagated correctly ? got quantum nil if not doing this
-rw-r--r-- | connector/mattermost/mattermost.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/connector/mattermost/mattermost.go b/connector/mattermost/mattermost.go index ca49c99..41f956b 100644 --- a/connector/mattermost/mattermost.go +++ b/connector/mattermost/mattermost.go @@ -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() { |