1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-17 17:47:03 +00:00

chore: modernize range loops (#574)

Signed-off-by: James Hillyerd <james@hillyerd.com>
This commit is contained in:
James Hillyerd
2025-05-31 12:57:47 -07:00
committed by GitHub
parent 8a1a01660c
commit f799e3debf
4 changed files with 17 additions and 20 deletions

View File

@@ -37,7 +37,7 @@ func TestMaxSize(t *testing.T) {
for _, mailbox := range boxes {
go func(mailbox string) {
size := int64(0)
for i := 0; i < n; i++ {
for range n {
_, nbytes := test.DeliverToStore(t, s, mailbox, "subject", time.Now())
size += nbytes
}