From 7da0be8f5702dad0023172876deedacf1c34fa53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emir=20Ribi=C4=87?= Date: Wed, 31 Jul 2024 17:30:36 +0200 Subject: [PATCH] linter fix --- slog/sentryslog_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/slog/sentryslog_test.go b/slog/sentryslog_test.go index 0053d36a..b5fd9dc9 100644 --- a/slog/sentryslog_test.go +++ b/slog/sentryslog_test.go @@ -190,11 +190,11 @@ func equalFuncs(a, b []func(ctx context.Context) []slog.Attr) bool { return true } -// Mock functions for custom converter and custom attr from context -func CustomConverter(addSource bool, replaceAttr func(groups []string, a slog.Attr) slog.Attr, attrs []slog.Attr, groups []string, record *slog.Record, hub *sentry.Hub) *sentry.Event { +// Mock functions for custom converter and custom attr from context. +func CustomConverter(bool, func([]string, slog.Attr) slog.Attr, []slog.Attr, []string, *slog.Record, *sentry.Hub) *sentry.Event { return sentry.NewEvent() } -func customAttrFromContext(ctx context.Context) []slog.Attr { +func customAttrFromContext(context.Context) []slog.Attr { return []slog.Attr{slog.String("custom", "attr")} }