From 354f98437030ded397a716a8b5d24aa03d86ff0e Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Fri, 5 Nov 2021 16:38:24 +0100 Subject: [PATCH] Lint: Disable funlen linter for sendLivePost Signed-off-by: Knut Ahlers --- mod_livePosting.go | 1 + 1 file changed, 1 insertion(+) diff --git a/mod_livePosting.go b/mod_livePosting.go index 1973cc3..1bd675c 100644 --- a/mod_livePosting.go +++ b/mod_livePosting.go @@ -220,6 +220,7 @@ func (m *modLivePosting) handlePresenceUpdate(d *discordgo.Session, p *discordgo } } +//nolint:funlen // Makes no sense to split just for 2 lines func (m *modLivePosting) sendLivePost(username, displayName, title, game, previewImage, profileImage string) error { m.lock.Lock() defer m.lock.Unlock()