diff options
| author | Paul Buetow <paul@buetow.org> | 2025-11-02 23:42:15 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-11-02 23:42:15 +0200 |
| commit | 35e1de6f975088ade5dbf0af533fe6fdac8fcc94 (patch) | |
| tree | c9fc9b6ad86cc10a777b3f510c3c4b2d62c41ebd /internal/hexailsp | |
| parent | c60d5703d25b7d76d1da2f368b0632f08a161644 (diff) | |
some linter fixes
Diffstat (limited to 'internal/hexailsp')
| -rw-r--r-- | internal/hexailsp/run.go | 6 |
1 files changed, 5 insertions, 1 deletions
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) |
