Skip to content

Commit

Permalink
Fix logic error causing panic storing nil
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmaguire committed Jun 19, 2024
1 parent 4589547 commit 334c985
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,9 @@ func (c *Client) streamingPostDNClient(ctx context.Context, reqType string, valu
}
if err := json.Unmarshal(respBody, &errors); err != nil {
sc.err.Store(fmt.Errorf("dnclient endpoint returned bad status code '%d', body: %s", resp.StatusCode, respBody))
} else {
sc.err.Store(errors.Errors.ToError())
}
sc.err.Store(errors.Errors.ToError())
}
}()

Expand Down

0 comments on commit 334c985

Please sign in to comment.