Remove duplicate if statement

This commit is contained in:
Mouse Reeve 2023-08-19 15:06:57 -07:00
parent d9f6449767
commit 1e0fe6d7c8

View file

@ -381,8 +381,7 @@ class Edition(Book):
# Create sort title by removing articles from title # Create sort title by removing articles from title
if self.sort_title in [None, ""]: if self.sort_title in [None, ""]:
if self.sort_title in [None, ""]: self.sort_title = self.guess_sort_title()
self.sort_title = self.guess_sort_title()
return super().save(*args, **kwargs) return super().save(*args, **kwargs)