From 78401214b0b5d26fd3f0d10139061edce35e56c1 Mon Sep 17 00:00:00 2001 From: Wim Date: Thu, 8 Nov 2018 22:29:34 +0100 Subject: Make scopelint happy --- gateway/gateway.go | 1 + gateway/router.go | 1 + 2 files changed, 2 insertions(+) (limited to 'gateway') 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 { -- cgit v1.2.3