forked from TrueCloudLab/lego
Clean-up ugly zero time check
This commit is contained in:
parent
3ef08f7413
commit
835927f5d5
1 changed files with 1 additions and 2 deletions
|
@ -60,8 +60,7 @@ func generateDerCert(privKey *rsa.PrivateKey, expiration time.Time, domain strin
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
zero := time.Time{}
|
if expiration.IsZero() {
|
||||||
if expiration == zero {
|
|
||||||
expiration = time.Now().Add(365)
|
expiration = time.Now().Add(365)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue