We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23c448c commit 9c48d83Copy full SHA for 9c48d83
1 file changed
intra/xdns/dnsutil.go
@@ -455,7 +455,7 @@ func NormalizeQName(str string) (string, error) {
455
hasUpper := false
456
str = strings.TrimSuffix(str, ".")
457
strLen := len(str)
458
- for i := 0; i < strLen; i++ {
+ for i := range strLen {
459
c := str[i]
460
if c >= utf8.RuneSelf {
461
return str, errNotAscii
@@ -467,7 +467,7 @@ func NormalizeQName(str string) (string, error) {
467
}
468
var b strings.Builder
469
b.Grow(len(str))
470
471
472
if 'A' <= c && c <= 'Z' {
473
c += 'a' - 'A'
0 commit comments