ecadlabs/go-tezos

View on GitHub
client.go

Summary

Maintainability
A
1 hr
Test Coverage

Method RPCClient.Do has 9 return statements (exceeds 4 allowed).
Open

func (c *RPCClient) Do(req *http.Request, v interface{}) (err error) {
    dumpRequest(c.log(), log.DebugLevel, req)

    client := &http.Client{
        Transport: c.transport(),
Severity: Major
Found in client.go - About 55 mins to fix

    Method RPCClient.handleNormalResponse has 5 return statements (exceeds 4 allowed).
    Open

    func (c *RPCClient) handleNormalResponse(ctx context.Context, resp *http.Response, v interface{}) error {
        // Normal return
        typ := reflect.TypeOf(v)
    
        if typ.Kind() == reflect.Chan {
    Severity: Major
    Found in client.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status