Remove extra if None not in referenced_templates

This commit is contained in:
Rob Duffy 2024-12-02 19:58:11 +00:00
parent 5173a490b8
commit 20c0235006

View File

@ -29,7 +29,6 @@ class DataFileLoader(BaseLoader):
# Find and pre-fetch referenced templates # Find and pre-fetch referenced templates
if referenced_templates := tuple(find_referenced_templates(environment.parse(template_source))): if referenced_templates := tuple(find_referenced_templates(environment.parse(template_source))):
if None in referenced_templates:
related_files = DataFile.objects.filter(source=self.data_source) related_files = DataFile.objects.filter(source=self.data_source)
# None indicates the use of dynamic resolution. If dependent files are statically # None indicates the use of dynamic resolution. If dependent files are statically
# defined, we can filter by path for optimization. # defined, we can filter by path for optimization.