chore: update linter. (#1275)

This commit is contained in:
Ludovic Fernandez 2020-10-22 22:30:50 +02:00 committed by GitHub
parent 88823a5c92
commit 918037b8af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -197,7 +197,7 @@ func (s *CertificatesStorage) MoveToArchive(domain string) error {
// sanitizedDomain Make sure no funny chars are in the cert names (like wildcards ;)). // sanitizedDomain Make sure no funny chars are in the cert names (like wildcards ;)).
func sanitizedDomain(domain string) string { func sanitizedDomain(domain string) string {
safe, err := idna.ToASCII(strings.Replace(domain, "*", "_", -1)) safe, err := idna.ToASCII(strings.ReplaceAll(domain, "*", "_"))
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }