mirror of
https://github.com/caddyserver/caddy.git
synced 2025-12-08 06:09:53 +00:00
chore: ugh, lint fix... (#7275)
* chore: ugh, lint fix... Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com> * more lint fixes Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com> --------- Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com>
This commit is contained in:
parent
0c8798fce3
commit
25be2f26fc
14 changed files with 48 additions and 48 deletions
|
|
@ -220,13 +220,13 @@ func (a *adminAPI) getCAFromAPIRequestPath(r *http.Request) (*CA, error) {
|
|||
func rootAndIntermediatePEM(ca *CA) (root, inter []byte, err error) {
|
||||
root, err = pemEncodeCert(ca.RootCertificate().Raw)
|
||||
if err != nil {
|
||||
return
|
||||
return root, inter, err
|
||||
}
|
||||
inter, err = pemEncodeCert(ca.IntermediateCertificate().Raw)
|
||||
if err != nil {
|
||||
return
|
||||
return root, inter, err
|
||||
}
|
||||
return
|
||||
return root, inter, err
|
||||
}
|
||||
|
||||
// caInfo is the response structure for the CA info API endpoint.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue