From 35e1de6f975088ade5dbf0af533fe6fdac8fcc94 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 2 Nov 2025 23:42:15 +0200 Subject: some linter fixes --- internal/hexailsp/run.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'internal/hexailsp') diff --git a/internal/hexailsp/run.go b/internal/hexailsp/run.go index f0ab404..b7f777b 100644 --- a/internal/hexailsp/run.go +++ b/internal/hexailsp/run.go @@ -37,7 +37,11 @@ func RunWithConfig(logPath string, configPath string, stdin io.Reader, stdout io if err != nil { logger.Fatalf("failed to open log file: %v", err) } - defer f.Close() + defer func() { + if err := f.Close(); err != nil { + logger.Printf("failed to close log file: %v", err) + } + }() logger.SetOutput(f) } logging.Bind(logger) -- cgit v1.2.3