summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2022-03-02 13:38:05 -0700
committerMatthew Holt <mholt@users.noreply.github.com>2022-03-02 13:38:05 -0700
commit9b7cdfa2f2277ad9cf90e99dab50dee2ef10b58c (patch)
treeb102cf5f10a36ec08175eab2e48db6b552471738
parent78e381b29f64c07a0572a172ff5f89876e8d84db (diff)
caddypki: Try to fix lint warnings
-rw-r--r--modules/caddypki/adminapi.go (renamed from modules/caddypki/adminpki.go)4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/caddypki/adminpki.go b/modules/caddypki/adminapi.go
index a2939d1..a79e2d5 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