use a more modern writing style to simplify code (#7182)

Signed-off-by: joemicky <joemickychang@outlook.com>
Co-authored-by: Matt Holt <mholt@users.noreply.github.com>
This commit is contained in:
joemicky 2025-08-21 02:41:21 +09:00 committed by GitHub
parent b15ed9b084
commit 5125fbed41
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 19 additions and 30 deletions

View file

@ -9,7 +9,7 @@ import (
func BenchmarkOpenResponseWriter(b *testing.B) {
enc := new(Encode)
for n := 0; n < b.N; n++ {
for b.Loop() {
enc.openResponseWriter("test", nil, false)
}
}