-
Notifications
You must be signed in to change notification settings - Fork 256
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
Add check for empty DNS value in ca init #815
Conversation
0999f36
to
1664675
Compare
command/ca/init.go
Outdated
// all are empty (length 0). | ||
func allEmpty(parts []string) bool { | ||
for _, p := range parts { | ||
if len(p) > 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason we're specifically checking for len
here? With strings in golang I thought it was more idiomatic to check if it's equivalent to ""
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 3dca2ff. You're right; it's more idiomatic that way.
d003588
to
3dca2ff
Compare
No description provided.