From aeb4d29c3b29676ddf7417c331a58e8749e518a1 Mon Sep 17 00:00:00 2001 From: Willy Goiffon Date: Thu, 16 Jul 2020 12:18:33 +0200 Subject: [PATCH] Ignore linter errors on Sync/Close being unchecked There is nothing to do really if any of those fail. The program will terminate anyway as the defer happens in the main() functions. --- matterbridge.go | 1 + 1 file changed, 1 insertion(+) diff --git a/matterbridge.go b/matterbridge.go index 145ce68c..63fd12f7 100644 --- a/matterbridge.go +++ b/matterbridge.go @@ -52,6 +52,7 @@ func main() { cfg.BridgeValues().General.Debug = *flagDebug // if logging to a file, ensure it is closed when the program terminates + // nolint:errcheck defer func() { if f, ok := rootLogger.Out.(*os.File); ok { f.Sync()