summaryrefslogtreecommitdiffstats
path: root/gateway
diff options
context:
space:
mode:
authorWim <wim@42.be>2018-11-08 22:29:34 +0100
committerWim <wim@42.be>2018-11-08 22:29:34 +0100
commit78401214b0b5d26fd3f0d10139061edce35e56c1 (patch)
tree21965e91716e118180e9d928ebabb08a8d90daef /gateway
parentb2a07aba3a4343087bdbaa2bb5ef7d703bca79e1 (diff)
downloadmatterbridge-msglm-78401214b0b5d26fd3f0d10139061edce35e56c1.tar.gz
matterbridge-msglm-78401214b0b5d26fd3f0d10139061edce35e56c1.tar.bz2
matterbridge-msglm-78401214b0b5d26fd3f0d10139061edce35e56c1.zip
Make scopelint happy
Diffstat (limited to 'gateway')
-rw-r--r--gateway/gateway.go1
-rw-r--r--gateway/router.go1
2 files changed, 2 insertions, 0 deletions
diff --git a/gateway/gateway.go b/gateway/gateway.go
index 34cdd7fe..73072fae 100644
--- a/gateway/gateway.go
+++ b/gateway/gateway.go
@@ -128,6 +128,7 @@ func (gw *Gateway) AddConfig(cfg *config.Gateway) error {
gw.MyConfig = cfg
gw.mapChannels()
for _, br := range append(gw.MyConfig.In, append(gw.MyConfig.InOut, gw.MyConfig.Out...)...) {
+ br := br //scopelint
err := gw.AddBridge(&br)
if err != nil {
return err
diff --git a/gateway/router.go b/gateway/router.go
index 3a45de36..1ea3f940 100644
--- a/gateway/router.go
+++ b/gateway/router.go
@@ -70,6 +70,7 @@ func (r *Router) getBridge(account string) *bridge.Bridge {
func (r *Router) handleReceive() {
for msg := range r.Message {
+ msg := msg // scopelint
if msg.Event == config.EVENT_FAILURE {
Loop:
for _, gw := range r.Gateways {