mirror of
https://github.com/smallstep/certificates.git
synced 2024-10-31 03:20:16 +00:00
Remove use of time.Duration.Abs
time.Duration.Abs() was added in Go 1.19
This commit is contained in:
parent
89c8c6d0a0
commit
2d582e5694
@ -706,7 +706,7 @@ func (a *Authority) GenerateCertificateRevocationList() error {
|
||||
// Convert our database db.RevokedCertificateInfo types into the pkix
|
||||
// representation ready for the CAS to sign it
|
||||
var revokedCertificates []pkix.RevokedCertificate
|
||||
skipExpiredTime := now.Add(-config.DefaultCRLExpiredDuration.Abs())
|
||||
skipExpiredTime := now.Add(-config.DefaultCRLExpiredDuration)
|
||||
for _, revokedCert := range *revokedList {
|
||||
// skip expired certificates
|
||||
if !revokedCert.ExpiresAt.IsZero() && revokedCert.ExpiresAt.Before(skipExpiredTime) {
|
||||
|
Loading…
Reference in New Issue
Block a user