Skip to content

Check for http status code for health-check APIs#87

Open
akashnagesh wants to merge 1 commit intoblackducksoftware:masterfrom
akashnagesh:health-check-status-code
Open

Check for http status code for health-check APIs#87
akashnagesh wants to merge 1 commit intoblackducksoftware:masterfrom
akashnagesh:health-check-status-code

Conversation

@akashnagesh
Copy link

Check for http status code for health-check APIs

return err, nil
}

if resp != nil && resp.StatusCode != http.StatusOK {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should the check for nil be done earlier? Is it possible to have no error AND no response?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants