chore(all): replace map key deletion loop with clear() (#21082)

This commit is contained in:
Name
2025-04-01 23:28:06 +08:00
committed by GitHub
parent e0c8738230
commit b1bc641105
5 changed files with 6 additions and 18 deletions

View File

@@ -87,9 +87,7 @@ func (r *Record) Reset() {
if len(r.csvRecord) > 0 {
r.csvRecord = r.csvRecord[:0]
}
for k := range r.nameIndexMap {
delete(r.nameIndexMap, k)
}
clear(r.nameIndexMap)
}
// Clone the record.