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

fix: remove repeated calls to self._get_reason #1513

Merged
merged 1 commit into from Sep 2, 2021

Conversation

dermasmid
Copy link
Contributor

@dermasmid dermasmid commented Sep 2, 2021

self._get_reason is being called in __init__ (#1185) , so why not save it then?
also in the __repr__ function we got the reason by calling the _get_reason function right in the beginning, but was then called again.

@dermasmid dermasmid requested a review from a team as a code owner September 2, 2021 05:23
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Sep 2, 2021
@parthea parthea added kokoro:force-run Add this label to force Kokoro to re-run the tests. kokoro:run Add this label to force Kokoro to re-run the tests. and removed kokoro:force-run Add this label to force Kokoro to re-run the tests. kokoro:run Add this label to force Kokoro to re-run the tests. labels Sep 2, 2021
@yoshi-kokoro yoshi-kokoro removed kokoro:run Add this label to force Kokoro to re-run the tests. kokoro:force-run Add this label to force Kokoro to re-run the tests. labels Sep 2, 2021
Copy link
Contributor

@parthea parthea left a comment

Choose a reason for hiding this comment

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

Thanks for the fix, @dermasmid !

@parthea parthea added the automerge: exact Summon MOG for automerging, but approvals need to be against the latest commit label Sep 2, 2021
@gcf-merge-on-green gcf-merge-on-green bot merged commit d5cf4e0 into googleapis:main Sep 2, 2021
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge: exact Summon MOG for automerging, but approvals need to be against the latest commit label Sep 2, 2021
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.

None yet

3 participants