Skip to content

Commit 17df2e7

Browse files
committed
fix(HandleInlineHandler): wrong types used for chaining
1 parent e08d56c commit 17df2e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

handler_inline_handle.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func (h *HandleInlineHandler) WithAttrs(attrs []slog.Attr) slog.Handler {
3939
newAttrs = append(newAttrs, h.attrs...)
4040
newAttrs = append(newAttrs, attrs...)
4141

42-
return &InlineHandler{
42+
return &HandleInlineHandler{
4343
groups: h.groups,
4444
attrs: newAttrs,
4545
handleFunc: h.handleFunc,
@@ -56,7 +56,7 @@ func (h *HandleInlineHandler) WithGroup(name string) slog.Handler {
5656
newGroups := []string{}
5757
newGroups = append(newGroups, h.groups...)
5858
newGroups = append(newGroups, name)
59-
return &InlineHandler{
59+
return &HandleInlineHandler{
6060
groups: newGroups,
6161
attrs: h.attrs,
6262
handleFunc: h.handleFunc,

0 commit comments

Comments
 (0)