Skip to content

Commit

Permalink
remove unnecessary clear
Browse files Browse the repository at this point in the history
Signed-off-by: Callum Styan <[email protected]>
  • Loading branch information
cstyan committed Jan 8, 2024
1 parent 142d356 commit 2037966
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/logql/log/labels.go
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,6 @@ func (b *LabelsBuilder) Map() map[string]string {
// todo should we also cache maps since limited by the result ?
// Maps also don't create a copy of the labels.
res := smp.Get()
clear(res)
for _, l := range b.buf {
res[l.Name] = l.Value
}
Expand Down

0 comments on commit 2037966

Please sign in to comment.