From 918037b8aff5f0fd6db9d5c96ef49608dfe403b7 Mon Sep 17 00:00:00 2001 From: Ludovic Fernandez Date: Thu, 22 Oct 2020 22:30:50 +0200 Subject: [PATCH] chore: update linter. (#1275) --- cmd/certs_storage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/certs_storage.go b/cmd/certs_storage.go index cc81309f..c3d729d2 100644 --- a/cmd/certs_storage.go +++ b/cmd/certs_storage.go @@ -197,7 +197,7 @@ func (s *CertificatesStorage) MoveToArchive(domain string) error { // sanitizedDomain Make sure no funny chars are in the cert names (like wildcards ;)). func sanitizedDomain(domain string) string { - safe, err := idna.ToASCII(strings.Replace(domain, "*", "_", -1)) + safe, err := idna.ToASCII(strings.ReplaceAll(domain, "*", "_")) if err != nil { log.Fatal(err) }