mirror of
https://github.com/containers/podman.git
synced 2025-10-17 11:14:40 +08:00
update golangci-lint to 1.60.1
Fixes new spotted issues around printf() formats and using os.Setenv() in tests. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
package annotations
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"regexp"
|
||||
"strings"
|
||||
@ -41,7 +42,7 @@ func isDNS1123Subdomain(value string) error {
|
||||
}
|
||||
|
||||
if !dns1123SubdomainRegexp.MatchString(value) {
|
||||
return fmt.Errorf(regexErrorMsg(dns1123SubdomainErrorMsg, dns1123SubdomainFmt, "example.com"))
|
||||
return errors.New(regexErrorMsg(dns1123SubdomainErrorMsg, dns1123SubdomainFmt, "example.com"))
|
||||
}
|
||||
|
||||
return nil
|
||||
|
Reference in New Issue
Block a user