-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
Simplify bool usages #90
Conversation
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 am not a fan of for loop. If could change that to use RW it would be great.
src/auto-switch.py
Outdated
] | ||
inets = [ | ||
inet in nic_ifconfig | ||
for inet in ['inet ', 'inet6'] |
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.
re should be used here instead of for loop.
src/auto-switch.py
Outdated
break | ||
status = [ | ||
f"status: {status_type}" in nic_ifconfig | ||
for status_type in ['active', 'associated'] |
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.
re should be used here instead of for loop.
Make sure to resolve the conflict and to do the request and I will merge it. |
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
Thanks for the contribution. |
No description provided.