summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2018-01-22 17:02:18 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2018-01-22 17:02:18 +0000
commite813a588c75e2bf9c0c80aeb7e0e6e9f444bb7bf (patch)
tree3640d8a85d727fe11621751aaceed84179628084
parentf490343d98e40f9c9b651aa02f351d0bbee9afd9 (diff)
downloadbuildstream-e813a588c75e2bf9c0c80aeb7e0e6e9f444bb7bf.tar.gz
element.py: Remove unreachable branch condition
If the weak key cannot be calculated we will have exited the function earlier on.
-rw-r--r--buildstream/element.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/buildstream/element.py b/buildstream/element.py
index 15a4f043b..13e2b2c79 100644
--- a/buildstream/element.py
+++ b/buildstream/element.py
@@ -1430,10 +1430,6 @@ class Element(Plugin):
]
self.__cache_key = self.__calculate_cache_key(dependencies)
- if self.__weak_cache_key is None:
- # Strong cache key could not be calculated yet
- return
-
# Update __strong_cached for non-strict builds now that the strong cache key is available
if not self.__strong_cached:
self.__strong_cached = self.__artifacts.contains(self, strength=_KeyStrength.STRONG)