mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 19:44:34 +03:00
Run modernize to rewrite some older go constructs to newer ones
Mostly using slice.Sort, using min/max, slices.Concat, range of int and fmt.Appendf for byte slices instead of strings.
This commit is contained in:
@ -806,7 +806,7 @@ func expandDomainSpec(ctx context.Context, resolver dns.Resolver, domainSpec str
|
||||
if reverse {
|
||||
nt := len(t)
|
||||
h := nt / 2
|
||||
for i := 0; i < h; i++ {
|
||||
for i := range h {
|
||||
t[i], t[nt-1-i] = t[nt-1-i], t[i]
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user