diff options
author | Wim <wim@42.be> | 2017-07-14 00:35:01 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2017-07-14 00:35:01 +0200 |
commit | 6dee988b76852c6b15ef59061896ce48ce6ba978 (patch) | |
tree | b2a187be4850e212400bb9627e60327c63370b30 /hook/rockethook/rockethook.go | |
parent | 5af40db3965649348143a530bea671574fb1ef54 (diff) | |
download | matterbridge-msglm-6dee988b76852c6b15ef59061896ce48ce6ba978.tar.gz matterbridge-msglm-6dee988b76852c6b15ef59061896ce48ce6ba978.tar.bz2 matterbridge-msglm-6dee988b76852c6b15ef59061896ce48ce6ba978.zip |
Fix megacheck / go vet issues
Diffstat (limited to 'hook/rockethook/rockethook.go')
-rw-r--r-- | hook/rockethook/rockethook.go | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/hook/rockethook/rockethook.go b/hook/rockethook/rockethook.go index eafd4f43..063be742 100644 --- a/hook/rockethook/rockethook.go +++ b/hook/rockethook/rockethook.go @@ -99,10 +99,9 @@ func (c *Client) ServeHTTP(w http.ResponseWriter, r *http.Request) { // Receive returns an incoming message from mattermost outgoing webhooks URL. func (c *Client) Receive() Message { - for { - select { - case msg := <-c.In: - return msg - } + var msg Message + for msg = range c.In { + return msg } + return msg } |