This commit is contained in:
Roy Nieterau 2023-03-26 21:07:38 +02:00
parent 81e25eb3a3
commit 03e5ff92ea

View file

@ -601,9 +601,8 @@ class ExtractLook(publish.Extractor):
def get_resource_destination_cached(path):
"""Get resource destination with cached result per filepath"""
if path not in destinations_cache:
self.get_resource_destination(path,
instance.data["resourcesDir"],
processors)
destination = self.get_resource_destination(
path, instance.data["resourcesDir"], processors)
destinations_cache[path] = destination
return destinations_cache[path]