Remove dead code

QUrl.path() never returns None
This commit is contained in:
Florian Bruhin 2017-12-11 09:14:26 +01:00
parent f7a94b946f
commit 6a7d2f4275

View File

@ -57,9 +57,7 @@ def parse_content_disposition(reply):
is_inline = content_disposition.is_inline()
# Then try to get filename from url
if not filename:
path = reply.url().path()
if path is not None:
filename = path.rstrip('/')
filename = reply.url().path().rstrip('/')
# If that fails as well, use a fallback
if not filename:
filename = 'qutebrowser-download'