mirror of
https://github.com/go-acme/lego.git
synced 2024-12-25 11:02:56 +02:00
Clean-up ugly zero time check
This commit is contained in:
parent
3ef08f7413
commit
835927f5d5
@ -60,8 +60,7 @@ func generateDerCert(privKey *rsa.PrivateKey, expiration time.Time, domain strin
|
||||
return nil, err
|
||||
}
|
||||
|
||||
zero := time.Time{}
|
||||
if expiration == zero {
|
||||
if expiration.IsZero() {
|
||||
expiration = time.Now().Add(365)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user