[api.http] refactoring: removing unneeded return type

This commit is contained in:
Vinicius Moreira
2021-11-20 10:37:11 -03:00
parent aef9ef0b0d
commit 0c4b479de9

View File

@@ -70,7 +70,7 @@ class HttpClient:
def get_content_length_in_bytes(self, url: str, session: bool = True) -> Optional[int]: def get_content_length_in_bytes(self, url: str, session: bool = True) -> Optional[int]:
if not url: if not url:
return None return
params = {'url': url, 'allow_redirects': True, 'stream': True} params = {'url': url, 'allow_redirects': True, 'stream': True}