Fix lint errors

This commit is contained in:
世界 2026-06-22 15:49:11 +08:00
parent a9f4123ba2
commit 46aa536b37
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
41 changed files with 498 additions and 406 deletions

View file

@ -878,7 +878,7 @@ func (o NDPDNSSearchList) iterDomainNames(fn func(string)) error {
}
// Copy the label and add a trailing period.
for i := 0; i < labelLen; i++ {
for i := range labelLen {
b, err := searchList.ReadByte()
if err != nil {
if err != io.EOF {