From 2f4beb57ba6cbc01520ce787f7594f869002719b Mon Sep 17 00:00:00 2001 From: ltdk <usr@ltdk.xyz> Date: Sat, 28 Sep 2024 02:04:00 -0400 Subject: [PATCH] linter complains about this, I'll just fix it --- server/certificates/certificates.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/certificates/certificates.go b/server/certificates/certificates.go index ff34775..062f721 100644 --- a/server/certificates/certificates.go +++ b/server/certificates/certificates.go @@ -196,7 +196,7 @@ func (c *AcmeClient) retrieveCertFromDB(sni, mainDomainSuffix string, useDnsProv // renew certificates 7 days before they expire if tlsCertificate.Leaf.NotAfter.Before(time.Now().Add(7 * 24 * time.Hour)) { // TODO: use ValidTill of custom cert struct - if res.CSR != nil && len(res.CSR) > 0 { + if len(res.CSR) > 0 { // CSR stores the time when the renewal shall be tried again nextTryUnix, err := strconv.ParseInt(string(res.CSR), 10, 64) if err == nil && time.Now().Before(time.Unix(nextTryUnix, 0)) {