Skip to content

Commit

Permalink
caddypki: Try to fix lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mholt committed Mar 2, 2022
1 parent 78e381b commit 9b7cdfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/caddypki/adminpki.go → modules/caddypki/adminapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9b7cdfa

Please sign in to comment.