From af8f18fd6aa79f0a96e4a7c63f15f9cfa3ed0556 Mon Sep 17 00:00:00 2001 From: andev0x Date: Mon, 22 Jun 2026 20:45:09 +0700 Subject: [PATCH] fix(hook_test): resolve unused variable warnings - replace explicit discard with blank identifier --- internal/cli/commands/hook_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/cli/commands/hook_test.go b/internal/cli/commands/hook_test.go index da617de..4954665 100644 --- a/internal/cli/commands/hook_test.go +++ b/internal/cli/commands/hook_test.go @@ -23,7 +23,7 @@ func TestHookPreToolInvalidSymbol(t *testing.T) { if err != nil { t.Fatalf("create store: %v", err) } - store.Close() + _ = store.Close() // Prepare JSON input with a non-existent symbol jsonInput := []byte(`{"tool_name":"pizen-lea__impact","tool_input":{"symbol":"nonexistent_symbol"}}`) @@ -55,7 +55,7 @@ func TestHookPreToolInvalidSymbol(t *testing.T) { } defer func() { os.Stdin = oldStdin - os.Chdir(oldWd) + _ = os.Chdir(oldWd) osExit = osExitOriginal _ = recover() if exitCode != 2 {