diff options
author | John L. Villalovos <john@sodarock.com> | 2022-06-03 16:31:38 -0700 |
---|---|---|
committer | John L. Villalovos <john@sodarock.com> | 2022-06-04 09:18:22 -0700 |
commit | d0b0811211f69f08436dcf7617c46617fe5c0b8b (patch) | |
tree | bb0e589646740ccf46450f7e0c552ed5b3b8b0b8 /gitlab/mixins.py | |
parent | d6870a981259ee44c64210a756b63dc19a6f3957 (diff) | |
download | gitlab-d0b0811211f69f08436dcf7617c46617fe5c0b8b.tar.gz |
chore: enable pylint check: "no-else-return"
Enable the pylint check "no-else-return" and fix the errors detected.
Diffstat (limited to 'gitlab/mixins.py')
-rw-r--r-- | gitlab/mixins.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gitlab/mixins.py b/gitlab/mixins.py index 3904d43..4dee710 100644 --- a/gitlab/mixins.py +++ b/gitlab/mixins.py @@ -231,8 +231,7 @@ class ListMixin(_RestManagerBase): obj = self.gitlab.http_list(path, **data) if isinstance(obj, list): return [self._obj_cls(self, item, created_from_list=True) for item in obj] - else: - return base.RESTObjectList(self, self._obj_cls, obj) + return base.RESTObjectList(self, self._obj_cls, obj) class RetrieveMixin(ListMixin, GetMixin): |