Skip to content

Commit 9c48d83

Browse files
committed
lint: xdns/dnsutil.go
1 parent 23c448c commit 9c48d83

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

intra/xdns/dnsutil.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ func NormalizeQName(str string) (string, error) {
455455
hasUpper := false
456456
str = strings.TrimSuffix(str, ".")
457457
strLen := len(str)
458-
for i := 0; i < strLen; i++ {
458+
for i := range strLen {
459459
c := str[i]
460460
if c >= utf8.RuneSelf {
461461
return str, errNotAscii
@@ -467,7 +467,7 @@ func NormalizeQName(str string) (string, error) {
467467
}
468468
var b strings.Builder
469469
b.Grow(len(str))
470-
for i := 0; i < strLen; i++ {
470+
for i := range strLen {
471471
c := str[i]
472472
if 'A' <= c && c <= 'Z' {
473473
c += 'a' - 'A'

0 commit comments

Comments
 (0)