diff options
author | Wim <wim@42.be> | 2023-01-28 22:57:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-28 22:57:53 +0100 |
commit | 880586bac42817ffcfea5d9f746f503fa29915b8 (patch) | |
tree | a89374cba6f88975f12316ec8d1b8aa1d4c6ba79 /bridge/mattermost | |
parent | eac2a8c8dc831f946970d327e2a80b26b0684255 (diff) | |
download | matterbridge-msglm-880586bac42817ffcfea5d9f746f503fa29915b8.tar.gz matterbridge-msglm-880586bac42817ffcfea5d9f746f503fa29915b8.tar.bz2 matterbridge-msglm-880586bac42817ffcfea5d9f746f503fa29915b8.zip |
Update dependencies (#1951)
Diffstat (limited to 'bridge/mattermost')
-rw-r--r-- | bridge/mattermost/handlers.go | 6 | ||||
-rw-r--r-- | bridge/mattermost/helpers.go | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/bridge/mattermost/handlers.go b/bridge/mattermost/handlers.go index fccb31b6..8c4ea365 100644 --- a/bridge/mattermost/handlers.go +++ b/bridge/mattermost/handlers.go @@ -41,7 +41,7 @@ func (b *Bmattermost) handleDownloadAvatar(userid string, channel string) { } } -// nolint:wrapcheck +//nolint:wrapcheck func (b *Bmattermost) handleDownloadFile(rmsg *config.Message, id string) error { url, _, _ := b.mc.Client.GetFileLink(id) finfo, _, err := b.mc.Client.GetFileInfo(id) @@ -91,7 +91,7 @@ func (b *Bmattermost) handleMatter() { } } -// nolint:cyclop +//nolint:cyclop func (b *Bmattermost) handleMatterClient(messages chan *config.Message) { for message := range b.mc.MessageChan { b.Log.Debugf("%#v %#v", message.Raw.GetData(), message.Raw.EventType()) @@ -186,7 +186,7 @@ func (b *Bmattermost) handleUploadFile(msg *config.Message) (string, error) { return res, err } -// nolint:forcetypeassert +//nolint:forcetypeassert func (b *Bmattermost) handleProps(rmsg *config.Message, message *matterclient.Message) { props := message.Post.Props if props == nil { diff --git a/bridge/mattermost/helpers.go b/bridge/mattermost/helpers.go index 3e1262c7..cca1c4e6 100644 --- a/bridge/mattermost/helpers.go +++ b/bridge/mattermost/helpers.go @@ -66,7 +66,7 @@ func (b *Bmattermost) doConnectWebhookURL() error { return nil } -// nolint:wrapcheck +//nolint:wrapcheck func (b *Bmattermost) apiLogin() error { password := b.GetString("Password") if b.GetString("Token") != "" { @@ -171,7 +171,7 @@ func (b *Bmattermost) sendWebhook(msg config.Message) (string, error) { } // skipMessages returns true if this message should not be handled -// nolint:gocyclo,cyclop +//nolint:gocyclo,cyclop func (b *Bmattermost) skipMessage(message *matterclient.Message) bool { // Handle join/leave if message.Type == "system_join_leave" || |