Skip to content

Commit

Permalink
Fix one more sourcery suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun committed Dec 10, 2024
1 parent 0c465eb commit f139f30
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions djangocms_text/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ def clean_plugins(self):
plugin.delete()

def copy_referenced_plugins(self):
referenced_plugins = self.get_referenced_plugins()
if referenced_plugins:
if referenced_plugins := self.get_referenced_plugins():
plugin_pairs = []
for source_plugin in referenced_plugins:
new_plugin = deepcopy(source_plugin)
Expand Down

0 comments on commit f139f30

Please sign in to comment.