-
Notifications
You must be signed in to change notification settings - Fork 18.6k
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
libnet: don't check if ctrler store is nil #47810
Conversation
Since commit befff0e, `(*Controller).getStore()` never returns nil except if `c.store` isn't initialized yet. This can't happen unless `New()` returned an error and it wasn't proper caught. Signed-off-by: Albin Kerouanton <albinker@gmail.com>
Looks like we may be able to clean up more (in a follow-up); let me jot down some things I noticed; Perhaps we should remove Lines 13 to 24 in 4554d87
But looking at the constructor, it can never be Line 111 in 4554d87
Based on this PR, perhaps Lines 26 to 30 in 4554d87
And, finally, perhaps we should consider reducing use of Lines 48 to 53 in 4554d87
|
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
- What I did
Since commit befff0e,
(*Controller).getStore()
never returns nil except ifc.store
isn't initialized yet. This can't happen unlessNew()
returned an error and it wasn't proper caught.- How to verify it
CI