summaryrefslogtreecommitdiff
path: root/buildstream/_variables.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildstream/_variables.py')
-rw-r--r--buildstream/_variables.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/buildstream/_variables.py b/buildstream/_variables.py
index 1a52b5680..95b80cc08 100644
--- a/buildstream/_variables.py
+++ b/buildstream/_variables.py
@@ -191,8 +191,8 @@ def find_recursive_variable(variable, matched_variables, all_vars):
for key, value in zip(matched_variables, matched_values):
if _wrap_variable(variable) in value:
return key
- else:
- return None
+ # We failed to find a recursive variable
+ return None
def _wrap_variable(var):