Skip to content

Commit

Permalink
fix typo in errcheck for response parsing logic in CreateTunnel routine
Browse files Browse the repository at this point in the history
  • Loading branch information
sivukhin authored and joliveirinha committed Mar 6, 2024
1 parent e846943 commit a36fa07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cfapi/tunnel.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func (r *RESTClient) CreateTunnel(name string, tunnelSecret []byte) (*TunnelWith
switch resp.StatusCode {
case http.StatusOK:
var tunnel TunnelWithToken
if serdeErr := parseResponse(resp.Body, &tunnel); err != nil {
if serdeErr := parseResponse(resp.Body, &tunnel); serdeErr != nil {
return nil, serdeErr
}
return &tunnel, nil
Expand Down

0 comments on commit a36fa07

Please sign in to comment.