-
Notifications
You must be signed in to change notification settings - Fork 102
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
Rename some variables. #1158
Rename some variables. #1158
Conversation
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.
Hooray for better variable names!
|
||
if len(opts.Webhooks) != 0 { // right now there's only 0 or 1 webhook, so this is good enough | ||
prereq, err := cmdInit.WebhookManifests(opts.Namespace) | ||
webhooks, err := cmdInit.WebhookManifests(opts.Namespace) |
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.
Nit, though it's already better than prereq
:
webhooks, err := cmdInit.WebhookManifests(opts.Namespace) | |
webhookManifests, err := cmdInit.WebhookManifests(opts.Namespace) |
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.
uf that is almost too long for me :)
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.
Waaay too long! Let's just accept the fact that Go has no Getters and Setters and intentionally chooses small variable names, especially in the local scope.
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.
LGTM
|
||
if len(opts.Webhooks) != 0 { // right now there's only 0 or 1 webhook, so this is good enough | ||
prereq, err := cmdInit.WebhookManifests(opts.Namespace) | ||
webhooks, err := cmdInit.WebhookManifests(opts.Namespace) |
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.
uf that is almost too long for me :)
What this PR does / why we need it:
prereq
variable