-
Notifications
You must be signed in to change notification settings - Fork 260
return early if CNI state exist and add some style fixes #1412
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
Conversation
|
can you update the title to be descriptive of the change? it becomes the commit message on merge so it is important that it provides immediately useful information. |
rbtr
left a comment
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
| return | ||
| } | ||
|
|
||
| if cniStateExists { |
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: with this we can remove the below !cniStateExists on line 115
| } | ||
|
|
||
| if cniStateExists { | ||
| return |
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.
I think we should put a comment here explaining why we return if cniStateExists. Even for folks that have seen this code path before, it's not immediately obvious.
* style: format issues * style: lint issues * style: lint issues * style: moved to new block Co-authored-by: Keith Nguyen <keithnguyen@microsoft.com>
Reason for Change:
Issue Fixed:
Requirements:
Notes: