mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-05-01 11:19:32 -05:00
Removed duplicate check if instance.filename
This commit is contained in:
parent
985350d715
commit
597057c3cf
@ -416,8 +416,7 @@ def update_filename(sender, instance, **kwargs):
|
||||
new_filename = instance.generate_source_filename()
|
||||
|
||||
# If the filename is the same, then nothing needs to be done
|
||||
if instance.filename is None or \
|
||||
instance.filename == new_filename:
|
||||
if instance.filename == new_filename:
|
||||
return
|
||||
|
||||
# Check if filename needs changing
|
||||
|
Loading…
x
Reference in New Issue
Block a user