Style: format code by gofumpt (#761)

This commit is contained in:
yuhan6665 authored and GitHub committed 2021-10-20 00:57:14 +08:00
1 parent d77be80b40
commit e286cdcaa8
111 files changed
+293 -291

No files matched your search

-3
View File
@@ -56,7 +56,6 @@ func GetOCSPForCert(cert [][]byte) ([]byte, error) {
pemBundle := bundle.Bytes()
certificates, err := parsePEMBundle(pemBundle)
if err != nil {
return nil, err
}
@@ -99,12 +98,10 @@ func GetOCSPForCert(cert [][]byte) ([]byte, error) {
}
defer req.Body.Close()
ocspResBytes, err := io.ReadAll(req.Body)
if err != nil {
return nil, newError(err)
}
return ocspResBytes, nil
}
// parsePEMBundle parses a certificate bundle from top to bottom and returns