summaryrefslogtreecommitdiffstats
path: root/bridge/whatsapp/handlers.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2022-03-13 23:51:08 +0100
committerWim <wim@42.be>2022-03-20 14:57:48 +0100
commitd64eed49bc6f2e8a01f922727795eea158cbc56d (patch)
tree4839beeac021d1ee18010ed8864611cdfaaa2481 /bridge/whatsapp/handlers.go
parentfffa29c2f359ef59b4d7dd6d118d80ac7427606d (diff)
downloadmatterbridge-msglm-d64eed49bc6f2e8a01f922727795eea158cbc56d.tar.gz
matterbridge-msglm-d64eed49bc6f2e8a01f922727795eea158cbc56d.tar.bz2
matterbridge-msglm-d64eed49bc6f2e8a01f922727795eea158cbc56d.zip
Fix linting (whatsapp)
Diffstat (limited to 'bridge/whatsapp/handlers.go')
-rw-r--r--bridge/whatsapp/handlers.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/bridge/whatsapp/handlers.go b/bridge/whatsapp/handlers.go
index 1216c693..bac886d3 100644
--- a/bridge/whatsapp/handlers.go
+++ b/bridge/whatsapp/handlers.go
@@ -44,6 +44,7 @@ func (b *Bwhatsapp) handleMessage(message *events.Message) {
}
}
+// nolint:funlen
func (b *Bwhatsapp) handleTextMessage(messageInfo types.MessageInfo, msg *proto.Message) {
senderJID := messageInfo.Sender
channel := messageInfo.Chat
@@ -60,6 +61,7 @@ func (b *Bwhatsapp) handleTextMessage(messageInfo types.MessageInfo, msg *proto.
var text string
+ // nolint:nestif
if msg.GetExtendedTextMessage() == nil {
text = msg.GetConversation()
} else {