mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-13 22:03:04 +00:00
Get rid of redundant code.
This commit is contained in:
parent
5d51aac0d3
commit
e598fbbc85
@ -182,10 +182,7 @@ class UploadsInProgress(object):
|
||||
If the given upload doesn't exist at all, nothing happens.
|
||||
"""
|
||||
if storage_index in self._uploads:
|
||||
try:
|
||||
in_progress = self._uploads[storage_index]
|
||||
except KeyError:
|
||||
return
|
||||
in_progress = self._uploads[storage_index]
|
||||
# For pre-existing upload, make sure password matches.
|
||||
if share_number in in_progress.upload_secrets and not timing_safe_compare(
|
||||
in_progress.upload_secrets[share_number], upload_secret
|
||||
|
Loading…
x
Reference in New Issue
Block a user