summaryrefslogtreecommitdiffstats
path: root/gateway
diff options
context:
space:
mode:
authorWim <wim@42.be>2018-11-08 00:29:30 +0100
committerWim <wim@42.be>2018-11-08 00:29:30 +0100
commit1794922263192a1ccccaf0cde2300d116e702042 (patch)
tree6455330f15a2b3b5f39331dae3e6a5131a177a2e /gateway
parent0ededb88633cd5d93665c250b49ea4f598a1a793 (diff)
downloadmatterbridge-msglm-1794922263192a1ccccaf0cde2300d116e702042.tar.gz
matterbridge-msglm-1794922263192a1ccccaf0cde2300d116e702042.tar.bz2
matterbridge-msglm-1794922263192a1ccccaf0cde2300d116e702042.zip
Make unparam linter happy
Diffstat (limited to 'gateway')
-rw-r--r--gateway/gateway.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/gateway/gateway.go b/gateway/gateway.go
index fb2cff4f..e699251f 100644
--- a/gateway/gateway.go
+++ b/gateway/gateway.go
@@ -218,7 +218,7 @@ func (gw *Gateway) getDestChannel(msg *config.Message, dest bridge.Bridge) []con
}
continue
}
- if strings.Contains(channel.Direction, "out") && channel.Account == dest.Account && gw.validGatewayDest(msg, channel) {
+ if strings.Contains(channel.Direction, "out") && channel.Account == dest.Account && gw.validGatewayDest(msg) {
channels = append(channels, *channel)
}
}
@@ -537,7 +537,7 @@ func (gw *Gateway) handleFiles(msg *config.Message) {
}
}
-func (gw *Gateway) validGatewayDest(msg *config.Message, channel *config.ChannelInfo) bool {
+func (gw *Gateway) validGatewayDest(msg *config.Message) bool {
return msg.Gateway == gw.Name
}