From 8ca7796d045010196eab659062b7d32101594180 Mon Sep 17 00:00:00 2001 From: sneak Date: Fri, 20 Jun 2025 08:51:13 -0700 Subject: [PATCH] Fix unused parameter errors in debug.go slog.Handler interface Rename unused parameters to _ in WithAttrs and WithGroup methods as these are required by the slog.Handler interface --- internal/secret/debug.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/secret/debug.go b/internal/secret/debug.go index 7c15c01..1d4c6b9 100644 --- a/internal/secret/debug.go +++ b/internal/secret/debug.go @@ -123,13 +123,13 @@ func (h *colorizedHandler) Handle(_ context.Context, record slog.Record) error { return err } -func (h *colorizedHandler) WithAttrs(attrs []slog.Attr) slog.Handler { +func (h *colorizedHandler) WithAttrs(_ []slog.Attr) slog.Handler { // For simplicity, return the same handler // In a more complex implementation, we'd create a new handler with the attrs return h } -func (h *colorizedHandler) WithGroup(name string) slog.Handler { +func (h *colorizedHandler) WithGroup(_ string) slog.Handler { // For simplicity, return the same handler // In a more complex implementation, we'd create a new handler with the group return h