Skip to content

Commit

Permalink
linter fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ribice committed Jul 31, 2024
1 parent bded79e commit 7da0be8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions slog/sentryslog_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")}
}

0 comments on commit 7da0be8

Please sign in to comment.