summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--buildstream/_yaml.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/buildstream/_yaml.py b/buildstream/_yaml.py
index 4461b4c9d..de2ef0dd2 100644
--- a/buildstream/_yaml.py
+++ b/buildstream/_yaml.py
@@ -200,7 +200,6 @@ def load(filename, shortname=None, copy_tree=False, *, project=None, yaml_cache=
with open(filename) as f:
contents = f.read()
if yaml_cache:
- assert project
key = yaml_cache.calculate_key(contents, copy_tree)
data = yaml_cache.get(project, filename, key)
@@ -208,7 +207,6 @@ def load(filename, shortname=None, copy_tree=False, *, project=None, yaml_cache=
data = load_data(contents, file, copy_tree=copy_tree)
if yaml_cache:
- assert project
yaml_cache.put(project, filename, key, data)
return data