From 9b7cdfa2f2277ad9cf90e99dab50dee2ef10b58c Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Wed, 2 Mar 2022 13:38:05 -0700 Subject: [PATCH] caddypki: Try to fix lint warnings --- modules/caddypki/{adminpki.go => adminapi.go} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename modules/caddypki/{adminpki.go => adminapi.go} (99%) diff --git a/modules/caddypki/adminpki.go b/modules/caddypki/adminapi.go similarity index 99% rename from modules/caddypki/adminpki.go rename to modules/caddypki/adminapi.go index a2939d1b..a79e2d5c 100644 --- a/modules/caddypki/adminpki.go +++ b/modules/caddypki/adminapi.go @@ -138,7 +138,7 @@ func (a *adminAPI) handleCAInfo(w http.ResponseWriter, r *http.Request) error { } w.Header().Set("Content-Type", "application/json") - w.Write(encoded) + _, _ = w.Write(encoded) return nil } @@ -171,7 +171,7 @@ func (a *adminAPI) handleCACerts(w http.ResponseWriter, r *http.Request) error { w.Header().Set("Content-Type", "application/pem-certificate-chain") _, err = w.Write(interCert) if err == nil { - w.Write(rootCert) + _, _ = w.Write(rootCert) } return nil