Skip to content

Commit b68009c

Browse files
committed
oops
1 parent 6057699 commit b68009c

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

handler_inline_handle.go

+5-7
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,11 @@ import (
77
)
88

99
// NewHandleInlineHandler is a shortcut to a middleware that implements only the `Handle` method.
10-
func NewHandleInlineHandler(handleFunc func(ctx context.Context, groups []string, attrs []slog.Attr, record slog.Record) error) Middleware {
11-
return func(next slog.Handler) slog.Handler {
12-
return &HandleInlineHandler{
13-
groups: []string{},
14-
attrs: []slog.Attr{},
15-
handleFunc: handleFunc,
16-
}
10+
func NewHandleInlineHandler(handleFunc func(ctx context.Context, groups []string, attrs []slog.Attr, record slog.Record) error) slog.Handler {
11+
return &HandleInlineHandler{
12+
groups: []string{},
13+
attrs: []slog.Attr{},
14+
handleFunc: handleFunc,
1715
}
1816
}
1917

0 commit comments

Comments
 (0)