Skip to content

Commit c37e118

Browse files
committed
just return r.Attrs
1 parent 84ac819 commit c37e118

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/log/slog/record.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,7 @@ func (r Record) Attrs(f func(Attr) bool) {
9595

9696
// AllAttrs returns an iterator over every attribute in the [Record].
9797
func (r Record) AllAttrs() iter.Seq[Attr] {
98-
return func(yield func(Attr) bool) {
99-
r.Attrs(yield)
100-
}
98+
return r.Attrs
10199
}
102100

103101
// AddAttrs appends the given Attrs to the [Record]'s list of Attrs.

0 commit comments

Comments
 (0)