mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-12 04:41:22 +00:00
errcheck: PR comment fixes
This commit is contained in:
committed by
Ethan Buchman
parent
b3c5933a23
commit
b75d4f73e7
@ -58,7 +58,7 @@ func WriteRPCResponseHTTPError(w http.ResponseWriter, httpCode int, res types.RP
|
||||
w.WriteHeader(httpCode)
|
||||
_, err = w.Write(jsonBytes)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
// ignore error
|
||||
}
|
||||
}
|
||||
|
||||
@ -71,7 +71,7 @@ func WriteRPCResponseHTTP(w http.ResponseWriter, res types.RPCResponse) {
|
||||
w.WriteHeader(200)
|
||||
_, err = w.Write(jsonBytes)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
// ignore error
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user