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

Fixing Linter errors: assignment-from-no-return<E1111> #2001

Merged
merged 5 commits into from
Sep 15, 2020

Conversation

kevinclark19a
Copy link
Contributor

Description


PR information

  • The title of the PR is clear and informative.
  • There are a small number of commits, each of which has an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
  • Except for special cases involving multiple contributors, the PR is started from a fork of the main repository, not a branch.
  • If applicable, the PR references the bug/issue that it fixes in the description.
  • New Unit tests were added for the changes made and Travis.CI is passing.

Quality of Code and Contribution Guidelines

@@ -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)
Copy link
Contributor Author

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.

Copy link
Contributor

@larohra larohra left a 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

@kevinclark19a kevinclark19a merged commit 229e9d1 into Azure:develop Sep 15, 2020
@kevinclark19a kevinclark19a deleted the LinterNoReturnAssignment branch September 15, 2020 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants