From 1d49c1e4e4311b26d4ad2fc614b6998ae3f078c8 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Mon, 16 Mar 2026 04:01:14 +0200 Subject: Use filepath.Join instead of fmt.Sprintf for path construction Replace string-based path building with filepath.Join in LSP and MCP server log path helpers for platform-correct path separators. Co-Authored-By: Claude Opus 4.6 --- cmd/hexai-lsp-server/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/hexai-lsp-server') diff --git a/cmd/hexai-lsp-server/main.go b/cmd/hexai-lsp-server/main.go index 6577bc2..3f7ed60 100644 --- a/cmd/hexai-lsp-server/main.go +++ b/cmd/hexai-lsp-server/main.go @@ -39,5 +39,5 @@ func defaultLogPath() string { if err != nil { return filepath.Join(os.TempDir(), "hexai-lsp-server.log") } - return fmt.Sprintf("%s/hexai-lsp-server.log", stateDir) + return filepath.Join(stateDir, "hexai-lsp-server.log") } -- cgit v1.2.3