Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
samber committed Dec 31, 2024
1 parent 6057699 commit b68009c
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions handler_inline_handle.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@ import (
)

// NewHandleInlineHandler is a shortcut to a middleware that implements only the `Handle` method.
func NewHandleInlineHandler(handleFunc func(ctx context.Context, groups []string, attrs []slog.Attr, record slog.Record) error) Middleware {
return func(next slog.Handler) slog.Handler {
return &HandleInlineHandler{
groups: []string{},
attrs: []slog.Attr{},
handleFunc: handleFunc,
}
func NewHandleInlineHandler(handleFunc func(ctx context.Context, groups []string, attrs []slog.Attr, record slog.Record) error) slog.Handler {
return &HandleInlineHandler{
groups: []string{},
attrs: []slog.Attr{},
handleFunc: handleFunc,
}
}

Expand Down

0 comments on commit b68009c

Please sign in to comment.