mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
MAINT: Linting (#1380)
* MAINT: Linting * Unsort for a smaller diff * fix hexonet error checking
This commit is contained in:
@@ -181,6 +181,7 @@ func getCertInfo(pemBytes []byte) (names []string, remaining float64, err error)
|
||||
if err != nil {
|
||||
return nil, 0, err
|
||||
}
|
||||
// FIXME(tlim): should use time.Until instead of t.Sub(time.Now()) (S1024)
|
||||
var daysLeft = float64(cert.NotAfter.Sub(time.Now())) / float64(time.Hour*24)
|
||||
return cert.DNSNames, daysLeft, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user