Skip to content

Commit 596742b

Browse files
committed
fix linter warning
1 parent fd8fcd5 commit 596742b

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

bench_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ func BenchmarkHandlers(b *testing.B) {
5454
b.Run(tc.name, func(b *testing.B) {
5555
l := tc.hdl.WithAttrs(attrs).WithGroup("test").WithAttrs(attrs)
5656
// Warm-up
57-
l.Handle(ctx, rec)
57+
_ = l.Handle(ctx, rec)
5858
b.ResetTimer()
5959
for i := 0; i < b.N; i++ {
60-
l.Handle(ctx, rec)
60+
_ = l.Handle(ctx, rec)
6161
}
6262
})
6363
}

buffer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ func (b *buffer) Clip() {
5757
*b = slices.Clip(*b)
5858
}
5959

60-
func (buf *buffer) copy(src *buffer) {
60+
func (b *buffer) copy(src *buffer) {
6161
if src.Len() > 0 {
62-
buf.Append(src.Bytes())
62+
b.Append(src.Bytes())
6363
}
6464
}
6565

encoding.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ func (e *encoder) writeAttr(buf *buffer, a slog.Attr, group string) {
114114
buf.AppendByte('=')
115115
})
116116
e.writeValue(buf, value)
117-
return
118117
}
119118

120119
func (e *encoder) writeValue(buf *buffer, value slog.Value) {

0 commit comments

Comments
 (0)