Skip to content

Commit

Permalink
more ci lint problems
Browse files Browse the repository at this point in the history
  • Loading branch information
danwt committed May 15, 2024
1 parent ab8f14e commit 59d30e9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion rpc/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func (c *Client) BroadcastTxCommit(ctx context.Context, tx tmtypes.Tx) (*ctypes.
// Wait for the tx to be included in a block or timeout.
select {
case msg := <-deliverTxSub.Out(): // The tx was included in a block.
deliverTxRes := msg.Data().(tmtypes.EventDataTx)
deliverTxRes, _ := msg.Data().(tmtypes.EventDataTx)
return &ctypes.ResultBroadcastTxCommit{
CheckTx: *checkTxRes,
DeliverTx: deliverTxRes.Result,
Expand Down
4 changes: 2 additions & 2 deletions rpc/json/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func (h *handler) serveJSONRPCforWS(w http.ResponseWriter, r *http.Request, wsCo
errInter := rets[1].Interface()
if errInter != nil {
statusCode = http.StatusBadRequest
errResult = errInter.(error)
errResult, _ = errInter.(error)
}

// Prevents Internet Explorer from MIME-sniffing a response away
Expand Down Expand Up @@ -177,7 +177,7 @@ func (h *handler) newHandler(methodSpec *method) func(http.ResponseWriter, *http
errInter := rets[1].Interface()
if errInter != nil {
statusCode = int(json2.E_INTERNAL)
err = errInter.(error)
err, _ = errInter.(error)
}

h.encodeAndWriteResponse(w, rets[0].Interface(), err, statusCode)
Expand Down
2 changes: 1 addition & 1 deletion rpc/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func (s *Server) startEventListener() {

// onNodeHealthUpdate is a callback function that handles health status events from the node.
func (s *Server) onNodeHealthUpdate(event pubsub.Message) {
eventData := event.Data().(*events.DataHealthStatus)
eventData, _ := event.Data().(*events.DataHealthStatus)
if eventData.Error != nil {
s.Logger.Error("node is unhealthy", "error", eventData.Error)
}
Expand Down

0 comments on commit 59d30e9

Please sign in to comment.