From 15a33c3622f6c0b7e9978d5933b05294a585ff2b Mon Sep 17 00:00:00 2001 From: Landon Cox Date: Sun, 29 Mar 2026 08:55:11 -0700 Subject: [PATCH] fix: remove redundant io.Writer type annotation (staticcheck QF1011) GetWriter() already returns io.Writer, making the explicit type annotation redundant. Remove it and the unused io import. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- internal/logger/file_logger_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/logger/file_logger_test.go b/internal/logger/file_logger_test.go index 10323752..d3b71af5 100644 --- a/internal/logger/file_logger_test.go +++ b/internal/logger/file_logger_test.go @@ -1,7 +1,6 @@ package logger import ( - "io" "os" "path/filepath" "strings" @@ -253,7 +252,8 @@ func TestFileLogger_GetWriter(t *testing.T) { globalLoggerMu.RUnlock() require.NotNil(t, logger) - var _ io.Writer = logger.GetWriter() + w := logger.GetWriter() + require.NotNil(t, w) }) }