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

examples: Remove extra setAccessKey call. #1469

Merged
merged 3 commits into from
Jun 27, 2018

Conversation

mattwhisenhunt
Copy link
Contributor

Fixes #1162

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jun 25, 2018
Copy link
Contributor

@NanneHuiges NanneHuiges left a comment

Choose a reason for hiding this comment

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

It looks good to remove this line, but I think I see a second bug: there is no return or exit after the header which is a (second) bug as far as i'm concerned.

While it would probably be bad form to try and patch two bugs in one go, in this situation this second bug means that all code bewow the header is still run, and so the argument

The page is redirected before the $client is ever used.

isn't as clear cut as it looks. I would suggest adding a return (as that seems used in line 28) below the header to make this explicit?

Copy link
Contributor

@NanneHuiges NanneHuiges left a comment

Choose a reason for hiding this comment

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

Looks good

@mattwhisenhunt mattwhisenhunt merged commit f88a98d into googleapis:master Jun 27, 2018
@bshaffer bshaffer mentioned this pull request May 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants