summaryrefslogtreecommitdiff
path: root/buildstream/_yaml.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildstream/_yaml.py')
-rw-r--r--buildstream/_yaml.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/buildstream/_yaml.py b/buildstream/_yaml.py
index 90784636d..940ca81e5 100644
--- a/buildstream/_yaml.py
+++ b/buildstream/_yaml.py
@@ -204,9 +204,8 @@ def load(filename, shortname=None, copy_tree=False, *, project=None, yaml_cache=
if not data:
data = load_data(contents, file, copy_tree=copy_tree)
-
- if yaml_cache:
- yaml_cache.put_from_key(project, filename, key, data)
+ if yaml_cache:
+ yaml_cache.put_from_key(project, filename, key, data)
return data
except FileNotFoundError as e: