diff options
author | Nejc Habjan <hab.nejc@gmail.com> | 2022-05-30 01:26:40 +0200 |
---|---|---|
committer | John Villalovos <john@sodarock.com> | 2022-05-29 16:56:36 -0700 |
commit | f0152dc3cc9a42aa4dc3c0014b4c29381e9b39d6 (patch) | |
tree | 5605865309aacb33f0d4589b5c170793e5d2c1d6 | |
parent | df072e130aa145a368bbdd10be98208a25100f89 (diff) | |
download | gitlab-f0152dc3cc9a42aa4dc3c0014b4c29381e9b39d6.tar.gz |
chore(mixins): remove None check as http_get always returns value
-rw-r--r-- | gitlab/mixins.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/gitlab/mixins.py b/gitlab/mixins.py index 850ce81..7cb3adc 100644 --- a/gitlab/mixins.py +++ b/gitlab/mixins.py @@ -142,8 +142,6 @@ class GetWithoutIdMixin(_RestManagerBase): if TYPE_CHECKING: assert self.path is not None server_data = self.gitlab.http_get(self.path, **kwargs) - if server_data is None: - return None if TYPE_CHECKING: assert not isinstance(server_data, requests.Response) assert self._obj_cls is not None |