Skip to content

Commit

Permalink
lint code
Browse files Browse the repository at this point in the history
  • Loading branch information
giskook committed Oct 13, 2024
1 parent d15fa14 commit 58b5647
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ethtxmanager/server_xlayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,7 @@ func (c *Client) startRPC() {
return
}
log.Errorf("closed http connection: %v", err)
return
}

return
}

func (c *Client) stopRPC() {
Expand Down Expand Up @@ -112,5 +109,8 @@ func (c *Client) ServeHTTP(w http.ResponseWriter, r *http.Request) {
var resp Response
resp.Data = data
respBytes, _ := json.Marshal(resp)
w.Write(respBytes)
_, err := w.Write(respBytes)
if err != nil {
log.Errorf("failed to write response: %v", err)
}
}

0 comments on commit 58b5647

Please sign in to comment.