Skip to content

Commit 9092b07

Browse files
committed
Fix incorrect parsing of result
Current version of json response doesn't have a result field
1 parent 55f8d82 commit 9092b07

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

templates/go/client.go.twig

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -308,10 +308,6 @@ func (clt *Client) Call(method string, path string, headers map[string]interface
308308
message: message,
309309
}
310310
}
311-
output, ok := jsonResponse["result"].(string)
312-
if !ok {
313-
return nil, fmt.Errorf("invalid response type %v", jsonResponse)
314-
}
315311
return &ClientResponse{
316312
Status: resp.Status,
317313
StatusCode: resp.StatusCode,

0 commit comments

Comments
 (0)