mirror of
https://github.com/caddyserver/caddy.git
synced 2026-01-16 17:20:34 +00:00
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:
@@ -516,7 +516,7 @@ func BenchmarkReplacer(b *testing.B) {
|
||||
},
|
||||
} {
|
||||
b.Run(bm.name, func(b *testing.B) {
|
||||
for i := 0; i < b.N; i++ {
|
||||
for b.Loop() {
|
||||
rep.ReplaceAll(bm.input, bm.empty)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user