mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-12 12:51:22 +00:00
linting errors: clean it all up
This commit is contained in:
committed by
Ethan Buchman
parent
b75d4f73e7
commit
8f0237610e
@ -56,10 +56,7 @@ func WriteRPCResponseHTTPError(w http.ResponseWriter, httpCode int, res types.RP
|
||||
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
w.WriteHeader(httpCode)
|
||||
_, err = w.Write(jsonBytes)
|
||||
if err != nil {
|
||||
// ignore error
|
||||
}
|
||||
_, _ = w.Write(jsonBytes) // ignoring error
|
||||
}
|
||||
|
||||
func WriteRPCResponseHTTP(w http.ResponseWriter, res types.RPCResponse) {
|
||||
@ -69,10 +66,7 @@ func WriteRPCResponseHTTP(w http.ResponseWriter, res types.RPCResponse) {
|
||||
}
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
w.WriteHeader(200)
|
||||
_, err = w.Write(jsonBytes)
|
||||
if err != nil {
|
||||
// ignore error
|
||||
}
|
||||
_, _ = w.Write(jsonBytes) // ignoring error
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user