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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user