Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 13, 21:45 UTC
caddypki: Try to fix lint warnings
Matthew Holt committed
Mar 2, 2022 at 13:38 UTC
9b7cdfa2f2277ad9cf90e99dab50dee2ef10b58c
1 file changed
+2
-2
modules/caddypki/adminapi.go
renamed
+2
-2
@@ -138,7 +138,7 @@ func (a *adminAPI) handleCAInfo(w http.ResponseWriter, r *http.Request) error {
138
}
139
140
w.Header().Set("Content-Type", "application/json")
141
- w.Write(encoded)
141
+ _, _ = w.Write(encoded)
142
143
return nil
144
}
@@ -171,7 +171,7 @@ func (a *adminAPI) handleCACerts(w http.ResponseWriter, r *http.Request) error {
171
w.Header().Set("Content-Type", "application/pem-certificate-chain")
172
_, err = w.Write(interCert)
173
if err == nil {
174
- w.Write(rootCert)
174
+ _, _ = w.Write(rootCert)
175
}
176
177
return nil