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.
This commit is contained in:
Willy Goiffon
2020-07-16 12:18:33 +02:00
parent 8263b786fb
commit aeb4d29c3b

View File

@@ -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()