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