all: Minor staticcheck fixes (#8939)

This commit is contained in:
guangwu
2023-06-19 06:50:53 +00:00
committed by GitHub
parent 5532532db9
commit 27aba3567b
3 changed files with 3 additions and 6 deletions
+1 -3
View File
@@ -391,9 +391,7 @@ func (m *metadataTracker) Snapshot() *countsMap {
for k, v := range m.indexes {
c.indexes[k] = v
}
for i := range m.counts.Counts {
c.counts.Counts[i] = m.counts.Counts[i]
}
copy(c.counts.Counts, m.counts.Counts)
return c
}