From d64eed49bc6f2e8a01f922727795eea158cbc56d Mon Sep 17 00:00:00 2001 From: Wim Date: Sun, 13 Mar 2022 23:51:08 +0100 Subject: Fix linting (whatsapp) --- bridge/whatsapp/handlers.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bridge/whatsapp/handlers.go') 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 { -- cgit v1.2.3