Skip to content

Add empty secret string check.#352

Merged
sarvaniv merged 3 commits intoistio:masterfrom
sarvaniv:fix_empty_string_check
Jun 5, 2017
Merged

Add empty secret string check.#352
sarvaniv merged 3 commits intoistio:masterfrom
sarvaniv:fix_empty_string_check

Conversation

@sarvaniv
Copy link
Copy Markdown
Contributor

@sarvaniv sarvaniv commented Jun 5, 2017

No description provided.

@sarvaniv sarvaniv requested review from liminw and qiwzhang June 5, 2017 16:12
if (!status.ok()) {
if (env_) {
env_->LogError("Failed to generate auth token.");
if (!secret.empty()) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

for easy reading. it is better bail out earlier, such as

if (empty) {
return
}
...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done.

@istio-testing
Copy link
Copy Markdown
Collaborator

Jenkins job proxy/presubmit passed

@istio-testing
Copy link
Copy Markdown
Collaborator

Jenkins job proxy/manager-regression passed

@sarvaniv sarvaniv merged commit bd4506d into istio:master Jun 5, 2017
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