-
Notifications
You must be signed in to change notification settings - Fork 372
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
Fixing Linter errors: assignment-from-no-return<E1111> #2001
Fixing Linter errors: assignment-from-no-return<E1111> #2001
Conversation
@@ -214,8 +214,7 @@ def remove_extension_cgroups(self, name): | |||
Deletes the cgroup for the given extension | |||
""" | |||
def __impl(): | |||
cgroups = self._cgroups_api.remove_extension_cgroups(name) # pylint: disable=E1111 | |||
return cgroups | |||
self._cgroups_api.remove_extension_cgroups(name) |
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.
We don't actually have to return here. _invoke_cgroup_operation
only uses the operation
parameter's return value as its return value. As we're ignoring said return value, providing one here doesn't do anything for us.
You can see this pattern above, on line 199 of this file, where _cgroups_api.create_extension_cgroups_root()
also doesn't return anything.
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.
changes LGTM, please make sure to run a sanity DCR run before merging
Description
PR information
Quality of Code and Contribution Guidelines