5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-11-22 02:20:28 +00:00

Fix linting (whatsapp)

This commit is contained in:
Wim 2022-03-13 23:51:08 +01:00
parent fffa29c2f3
commit d64eed49bc
2 changed files with 2 additions and 3 deletions

View File

@ -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 {

View File

@ -325,9 +325,6 @@ func (b *Bwhatsapp) Send(msg config.Message) (string, error) {
message.Conversation = &text
ID := whatsmeow.GenerateMessageID()
b.Log.Debugf("=> Sending %#v", message)
_, err := b.wc.SendMessage(groupJID, ID, &message)
return ID, err