Skip to content

Commit

Permalink
deepsource fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rking32 committed Nov 13, 2020
1 parent 106b9c2 commit b18a21d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions userge/plugins/misc/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ async def handle_download(message: Message, resource: Union[Message, str]) -> Tu
""" download from resource """
if isinstance(resource, Message):
return await tg_download(message, resource)
else:
return await url_download(message, resource)
return await url_download(message, resource)


async def url_download(message: Message, url: str) -> Tuple[str, int]:
Expand Down

0 comments on commit b18a21d

Please sign in to comment.