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

envflag nil guard on MustBool and MustInt #23

Merged
merged 1 commit into from
May 23, 2024
Merged

Conversation

metachris
Copy link
Collaborator

@metachris metachris commented Dec 18, 2023

for compatibility with https://github.com/uber-go/nilaway

otherwise complains:

-> envflag/envflag.go:48:9: result 0 of `Bool()` lacking guarding; returned from `MustBool()` in position 0

@metachris metachris merged commit a6b2d4e into main May 23, 2024
4 checks passed
@metachris metachris deleted the envflag-nilguard branch May 23, 2024 18:16
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