Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fixes a nil panic when unable to fetch feature flags #20

Merged

Conversation

TristanSpeakEasy
Copy link
Contributor

fixes a nil panic when unable to fetch feature flags and err != nil which means res.Body will be nil at defer time because we aren't returning early enough from the method

…nil which means res.Body will be nil at defer time because we aren't returning early enough from the method
@TristanSpeakEasy
Copy link
Contributor Author

apologies for the slight reformatting gofmt had its way with the file let me know if you want me to revert those changes

@neilkakkar
Copy link
Contributor

makes sense, thanks!

@neilkakkar neilkakkar merged commit d607812 into PostHog:master Aug 1, 2023
1 check passed
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.

3 participants